• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java WebSSOProfile类的典型用法和代码示例

java 2次浏览

本文整理汇总了Java中org.springframework.security.saml.websso.WebSSOProfile的典型用法代码示例。如果您正苦于以下问题:Java WebSSOProfile类的具体用法?Java WebSSOProfile怎么用?Java WebSSOProfile使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

WebSSOProfile类属于org.springframework.security.saml.websso包,在下文中一共展示了WebSSOProfile类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: configure

点赞 2

import org.springframework.security.saml.websso.WebSSOProfile; //导入依赖的package包/类
@Override
public void configure(ServiceProviderBuilder builder) throws Exception {
    if (webSSOProfileBean == null) {
        if (webSSOProfile == null) {
            webSSOProfile = createDefaultWebSSOProfile();
        }
        builder.setSharedObject(WebSSOProfile.class, webSSOProfile);
    }
}
 

开发者ID:ulisesbocchio,
项目名称:spring-boot-security-saml,
代码行数:10,
代码来源:WebSSOProfileConfigurer.java

示例2: configure

点赞 2

import org.springframework.security.saml.websso.WebSSOProfile; //导入依赖的package包/类
@Test
public void configure() throws Exception {
    WebSSOProfileConfigurer configurer = spy(new WebSSOProfileConfigurer());
    WebSSOProfile profile = mock(WebSSOProfile.class);
    when(configurer.createDefaultWebSSOProfile()).thenReturn(profile);
    configurer.init(builder);
    configurer.configure(builder);
    verify(builder).setSharedObject(eq(WebSSOProfile.class), eq(profile));
}
 

开发者ID:ulisesbocchio,
项目名称:spring-boot-security-saml,
代码行数:10,
代码来源:WebSSOProfileConfigurerTest.java

示例3: configure_forBean

点赞 2

import org.springframework.security.saml.websso.WebSSOProfile; //导入依赖的package包/类
@Test
public void configure_forBean() throws Exception {
    WebSSOProfileConfigurer configurer = spy(new WebSSOProfileConfigurer());
    WebSSOProfile profile = mock(WebSSOProfile.class);
    when(builder.getSharedObject(WebSSOProfile.class)).thenReturn(profile);
    configurer.init(builder);
    configurer.configure(builder);
    verify(configurer, never()).createDefaultWebSSOProfile();
    verify(builder, never()).setSharedObject(any(), any());
    verifyZeroInteractions(profile);
}
 

开发者ID:ulisesbocchio,
项目名称:spring-boot-security-saml,
代码行数:12,
代码来源:WebSSOProfileConfigurerTest.java

示例4: configure_forConstructor

点赞 2

import org.springframework.security.saml.websso.WebSSOProfile; //导入依赖的package包/类
@Test
public void configure_forConstructor() throws Exception {
    WebSSOProfile profile = mock(WebSSOProfile.class);
    WebSSOProfileConfigurer configurer = spy(new WebSSOProfileConfigurer(profile));
    configurer.init(builder);
    configurer.configure(builder);
    verify(configurer, never()).createDefaultWebSSOProfile();
    verify(builder).setSharedObject(WebSSOProfile.class, profile);
    verifyZeroInteractions(profile);
}
 

开发者ID:ulisesbocchio,
项目名称:spring-boot-security-saml,
代码行数:11,
代码来源:WebSSOProfileConfigurerTest.java

示例5: WebSSOProfileConfigurer

点赞 2

import org.springframework.security.saml.websso.WebSSOProfile; //导入依赖的package包/类
public WebSSOProfileConfigurer(WebSSOProfile webSSOProfile) {
    this.webSSOProfile = webSSOProfile;
}
 

开发者ID:ulisesbocchio,
项目名称:spring-boot-security-saml,
代码行数:4,
代码来源:WebSSOProfileConfigurer.java

示例6: init

点赞 2

import org.springframework.security.saml.websso.WebSSOProfile; //导入依赖的package包/类
@Override
public void init(ServiceProviderBuilder builder) throws Exception {
    webSSOProfileBean = builder.getSharedObject(WebSSOProfile.class);
}
 

开发者ID:ulisesbocchio,
项目名称:spring-boot-security-saml,
代码行数:5,
代码来源:WebSSOProfileConfigurer.java

示例7: createDefaultWebSSOProfile

点赞 2

import org.springframework.security.saml.websso.WebSSOProfile; //导入依赖的package包/类
@VisibleForTesting
protected WebSSOProfile createDefaultWebSSOProfile() {
    return new WebSSOProfileImpl();
}
 

开发者ID:ulisesbocchio,
项目名称:spring-boot-security-saml,
代码行数:5,
代码来源:WebSSOProfileConfigurer.java

示例8: init

点赞 2

import org.springframework.security.saml.websso.WebSSOProfile; //导入依赖的package包/类
@Test
public void init() throws Exception {
    WebSSOProfileConfigurer configurer = new WebSSOProfileConfigurer();
    configurer.init(builder);
    verify(builder).getSharedObject(eq(WebSSOProfile.class));
}
 

开发者ID:ulisesbocchio,
项目名称:spring-boot-security-saml,
代码行数:7,
代码来源:WebSSOProfileConfigurerTest.java

示例9: webSSOprofile

点赞 2

import org.springframework.security.saml.websso.WebSSOProfile; //导入依赖的package包/类
@Bean
public WebSSOProfile webSSOprofile() {
    return new WebSSOProfileImpl();
}
 

开发者ID:choonchernlim,
项目名称:spring-security-adfs-saml2,
代码行数:5,
代码来源:SAMLWebSecurityConfigurerAdapter.java

示例10: setWebSSOprofile

点赞 1

import org.springframework.security.saml.websso.WebSSOProfile; //导入依赖的package包/类
/**
 * Profile for consumption of processed messages, cannot be null, must be set.
 * It is set in the custom config, so can be optional here.
 * User could override it if desired.
 *
 * @param webSSOprofile profile
 */
@Autowired(required = false)
@Qualifier("webSSOprofile")
@Override
public void setWebSSOprofile(WebSSOProfile webSSOprofile) {
	super.setWebSSOprofile(webSSOprofile);
}
 

开发者ID:spring-projects,
项目名称:spring-security-saml-dsl,
代码行数:14,
代码来源:SAMLDslEntryPoint.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)