当前位置: 首页>>代码示例>>Java>>正文


Java ServerManager.setSharedAssociations方法代码示例

本文整理汇总了Java中org.openid4java.server.ServerManager.setSharedAssociations方法的典型用法代码示例。如果您正苦于以下问题:Java ServerManager.setSharedAssociations方法的具体用法?Java ServerManager.setSharedAssociations怎么用?Java ServerManager.setSharedAssociations使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.openid4java.server.ServerManager的用法示例。


在下文中一共展示了ServerManager.setSharedAssociations方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setUp

import org.openid4java.server.ServerManager; //导入方法依赖的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: serverManager

import org.openid4java.server.ServerManager; //导入方法依赖的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;
}
 
开发者ID:mrluo735,项目名称:cas-5.1.0,代码行数:11,代码来源:OpenIdConfiguration.java

示例3: setUp

import org.openid4java.server.ServerManager; //导入方法依赖的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


注:本文中的org.openid4java.server.ServerManager.setSharedAssociations方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。