org.springframework.security.saml.websso.SingleLogoutProfile Java Examples
The following examples show how to use
org.springframework.security.saml.websso.SingleLogoutProfile.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SingleLogoutProfileConfigurer.java From spring-boot-security-saml with MIT License | 5 votes |
@Override public void configure(ServiceProviderBuilder builder) throws Exception { if (sloProfileBean == null) { if (sloProfile == null) { sloProfile = createDefaultSingleLogoutProfile(); } builder.setSharedObject(SingleLogoutProfile.class, sloProfile); } }
Example #2
Source File: SingleLogoutProfileConfigurerTest.java From spring-boot-security-saml with MIT License | 5 votes |
@Test public void configure() throws Exception { SingleLogoutProfileConfigurer configurer = spy(new SingleLogoutProfileConfigurer()); SingleLogoutProfile profile = mock(SingleLogoutProfile.class); when(configurer.createDefaultSingleLogoutProfile()).thenReturn(profile); configurer.init(builder); configurer.configure(builder); verify(builder).setSharedObject(eq(SingleLogoutProfile.class), eq(profile)); }
Example #3
Source File: SingleLogoutProfileConfigurerTest.java From spring-boot-security-saml with MIT License | 5 votes |
@Test public void configure_forBean() throws Exception { SingleLogoutProfileConfigurer configurer = spy(new SingleLogoutProfileConfigurer()); SingleLogoutProfile profile = mock(SingleLogoutProfile.class); when(builder.getSharedObject(SingleLogoutProfile.class)).thenReturn(profile); configurer.init(builder); configurer.configure(builder); verify(configurer, never()).createDefaultSingleLogoutProfile(); verify(builder, never()).setSharedObject(any(), any()); verifyZeroInteractions(profile); }
Example #4
Source File: SingleLogoutProfileConfigurerTest.java From spring-boot-security-saml with MIT License | 5 votes |
@Test public void configure_forConstructor() throws Exception { SingleLogoutProfile profile = mock(SingleLogoutProfile.class); SingleLogoutProfileConfigurer configurer = spy(new SingleLogoutProfileConfigurer(profile)); configurer.init(builder); configurer.configure(builder); verify(configurer, never()).createDefaultSingleLogoutProfile(); verify(builder).setSharedObject(SingleLogoutProfile.class, profile); verifyZeroInteractions(profile); }
Example #5
Source File: SamlConfig.java From blackduck-alert with Apache License 2.0 | 4 votes |
@Bean public SingleLogoutProfile logoutProfile() { return new SingleLogoutProfileImpl(); }
Example #6
Source File: InsightsSecurityConfigurationAdapterSAML.java From Insights with Apache License 2.0 | 4 votes |
/** * Set up logout profile for SAML * * @return */ @Bean @Conditional(InsightsSAMLBeanInitializationCondition.class) public SingleLogoutProfile logoutProfile() { return new SingleLogoutProfileImpl(); }
Example #7
Source File: SingleLogoutProfileConfigurer.java From spring-boot-security-saml with MIT License | 4 votes |
public SingleLogoutProfileConfigurer(SingleLogoutProfile sloProfile) { this.sloProfile = sloProfile; }
Example #8
Source File: SingleLogoutProfileConfigurer.java From spring-boot-security-saml with MIT License | 4 votes |
@Override public void init(ServiceProviderBuilder builder) throws Exception { sloProfileBean = builder.getSharedObject(SingleLogoutProfile.class); }
Example #9
Source File: SingleLogoutProfileConfigurer.java From spring-boot-security-saml with MIT License | 4 votes |
@VisibleForTesting protected SingleLogoutProfile createDefaultSingleLogoutProfile() { return new SingleLogoutProfileImpl(); }
Example #10
Source File: SingleLogoutProfileConfigurerTest.java From spring-boot-security-saml with MIT License | 4 votes |
@Test public void init() throws Exception { SingleLogoutProfileConfigurer configurer = new SingleLogoutProfileConfigurer(); configurer.init(builder); verify(builder).getSharedObject(eq(SingleLogoutProfile.class)); }
Example #11
Source File: WebSecurityConfig.java From spring-boot-security-saml-sample with Apache License 2.0 | 4 votes |
@Bean public SingleLogoutProfile logoutprofile() { return new SingleLogoutProfileImpl(); }