本文整理汇总了Java中org.openid4java.server.ServerAssociationStore类的典型用法代码示例。如果您正苦于以下问题:Java ServerAssociationStore类的具体用法?Java ServerAssociationStore怎么用?Java ServerAssociationStore使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ServerAssociationStore类属于org.openid4java.server包,在下文中一共展示了ServerAssociationStore类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: setUp
import org.openid4java.server.ServerAssociationStore; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
request.addParameter("openid.identity", "http://openid.ja-sig.org/battags");
request.addParameter("openid.return_to", "http://www.ja-sig.org/?service=fa");
request.addParameter("openid.mode", "checkid_setup");
sharedAssociations = mock(ServerAssociationStore.class);
manager = new ServerManager();
manager.setOPEndpointUrl("https://localshot:8443/cas/login");
manager.setEnforceRpId(false);
manager.setSharedAssociations(sharedAssociations);
context = mock(ApplicationContext.class);
cas = mock(CentralAuthenticationService.class);
when(context.getBean("serverManager")).thenReturn(manager);
when(context.getBean("centralAuthenticationService", CentralAuthenticationService.class)).thenReturn(cas);
final ApplicationContextProvider contextProvider = new ApplicationContextProvider();
contextProvider.setApplicationContext(context);
}
开发者ID:hsj-xiaokang,项目名称:springboot-shiro-cas-mybatis,代码行数:20,代码来源:OpenIdServiceTests.java
示例2: setUp
import org.openid4java.server.ServerAssociationStore; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
request.addParameter("openid.identity", "http://openid.ja-sig.org/battags");
request.addParameter("openid.return_to", "http://www.ja-sig.org/?service=fa");
request.addParameter("openid.mode", "checkid_setup");
sharedAssociations = mock(ServerAssociationStore.class);
manager = new ServerManager();
manager.setOPEndpointUrl("https://localshot:8443/cas/login");
manager.setEnforceRpId(false);
manager.setSharedAssociations(sharedAssociations);
context = mock(ApplicationContext.class);
ApplicationContextProvider contextProvider = new ApplicationContextProvider();
contextProvider.setApplicationContext(context);
cas = mock(CentralAuthenticationService.class);
}
开发者ID:luotuo,项目名称:cas4.0.x-server-wechat,代码行数:16,代码来源:OpenIdServiceTests.java
示例3: getSharedAssociations
import org.openid4java.server.ServerAssociationStore; //导入依赖的package包/类
public ServerAssociationStore getSharedAssociations() {
return sharedAssociations;
}
开发者ID:hsj-xiaokang,项目名称:springboot-shiro-cas-mybatis,代码行数:4,代码来源:AbstractOpenIdTests.java
示例4: setStore
import org.openid4java.server.ServerAssociationStore; //导入依赖的package包/类
/**
* Sets the ServerAssociationStore.
*
* @param store
*/
public void setStore(ServerAssociationStore store) {
ServerAssociationStore oldStore = getStore();
serverManager.setSharedAssociations(store);
firePropertyChange(PROP_STORE, oldStore, store);
}
开发者ID:RUB-NDS,项目名称:OpenID-Attacker,代码行数:11,代码来源:CustomOpenIdProcessor.java
示例5: getStore
import org.openid4java.server.ServerAssociationStore; //导入依赖的package包/类
/**
* Returns the currently used ServerAssociationStore.
*
* @return
*/
public ServerAssociationStore getStore() {
return serverManager.getSharedAssociations();
}
开发者ID:RUB-NDS,项目名称:OpenID-Attacker,代码行数:9,代码来源:CustomOpenIdProcessor.java
注:本文中的org.openid4java.server.ServerAssociationStore类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论