本文整理汇总了Java中org.openid4java.server.InMemoryServerAssociationStore类的典型用法代码示例。如果您正苦于以下问题:Java InMemoryServerAssociationStore类的具体用法?Java InMemoryServerAssociationStore怎么用?Java InMemoryServerAssociationStore使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
InMemoryServerAssociationStore类属于org.openid4java.server包,在下文中一共展示了InMemoryServerAssociationStore类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: serverManager
import org.openid4java.server.InMemoryServerAssociationStore; //导入依赖的package包/类
@RefreshScope
@Bean
public ServerManager serverManager() {
final ServerManager manager = new ServerManager();
manager.setOPEndpointUrl(casProperties.getServer().getLoginUrl());
manager.setEnforceRpId(casProperties.getAuthn().getOpenid().isEnforceRpId());
manager.setSharedAssociations(new InMemoryServerAssociationStore());
LOGGER.info("Creating openid server manager with OP endpoint [{}]", casProperties.getServer().getLoginUrl());
return manager;
}
示例2: init
import org.openid4java.server.InMemoryServerAssociationStore; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
public void init(ServletConfig config) throws ServletException {
super.init(config);
context = config.getServletContext();
this.manager = new ServerManager();
manager.setOPEndpointUrl(OP_ENDPOINT_URL);
manager.getRealmVerifier().setEnforceRpId(false);
manager.setSharedAssociations(new InMemoryServerAssociationStore());
manager.setPrivateAssociations(new InMemoryServerAssociationStore());
}