本文整理匯總了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());
}