org.springframework.security.saml.websso.WebSSOProfileConsumerHoKImpl Java Examples
The following examples show how to use
org.springframework.security.saml.websso.WebSSOProfileConsumerHoKImpl.
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: WebSSOProfileHoKConsumerConfigurer.java From spring-boot-security-saml with MIT License | 5 votes |
@Override public void configure(ServiceProviderBuilder builder) throws Exception { if (hokProfileConsumerBean == null) { if (hokProfileConsumer == null) { hokProfileConsumer = createDefaultWebSSOProfileConsumerHoK(); } builder.setSharedObject(WebSSOProfileConsumerHoKImpl.class, hokProfileConsumer); } }
Example #2
Source File: WebSSOProfileHoKConsumerConfigurerTest.java From spring-boot-security-saml with MIT License | 5 votes |
@Test public void configure() throws Exception { WebSSOProfileHoKConsumerConfigurer configurer = spy(new WebSSOProfileHoKConsumerConfigurer()); WebSSOProfileConsumerHoKImpl profile = mock(WebSSOProfileConsumerHoKImpl.class); when(configurer.createDefaultWebSSOProfileConsumerHoK()).thenReturn(profile); configurer.init(builder); configurer.configure(builder); verify(builder).setSharedObject(eq(WebSSOProfileConsumerHoKImpl.class), eq(profile)); }
Example #3
Source File: WebSSOProfileHoKConsumerConfigurerTest.java From spring-boot-security-saml with MIT License | 5 votes |
@Test public void configure_forBean() throws Exception { WebSSOProfileHoKConsumerConfigurer configurer = spy(new WebSSOProfileHoKConsumerConfigurer()); WebSSOProfileConsumerHoKImpl profile = mock(WebSSOProfileConsumerHoKImpl.class); when(builder.getSharedObject(WebSSOProfileConsumerHoKImpl.class)).thenReturn(profile); configurer.init(builder); configurer.configure(builder); verify(configurer, never()).createDefaultWebSSOProfileConsumerHoK(); verify(builder, never()).setSharedObject(any(), any()); verifyZeroInteractions(profile); }
Example #4
Source File: WebSSOProfileHoKConsumerConfigurerTest.java From spring-boot-security-saml with MIT License | 5 votes |
@Test public void configure_forConstructor() throws Exception { WebSSOProfileConsumerHoKImpl profile = mock(WebSSOProfileConsumerHoKImpl.class); WebSSOProfileHoKConsumerConfigurer configurer = spy(new WebSSOProfileHoKConsumerConfigurer(profile)); configurer.init(builder); configurer.configure(builder); verify(configurer, never()).createDefaultWebSSOProfileConsumerHoK(); verify(builder).setSharedObject(WebSSOProfileConsumerHoKImpl.class, profile); verifyZeroInteractions(profile); }
Example #5
Source File: SamlConfig.java From blackduck-alert with Apache License 2.0 | 4 votes |
@Bean public WebSSOProfileConsumerHoKImpl hokWebSSOprofileConsumer() { return new WebSSOProfileConsumerHoKImpl(); }
Example #6
Source File: SamlConfig.java From blackduck-alert with Apache License 2.0 | 4 votes |
@Bean public WebSSOProfileConsumerHoKImpl hokWebSSOProfile() { return new WebSSOProfileConsumerHoKImpl(); }
Example #7
Source File: InsightsSecurityConfigurationAdapterSAML.java From Insights with Apache License 2.0 | 4 votes |
@Bean @Conditional(InsightsSAMLBeanInitializationCondition.class) public WebSSOProfileConsumerHoKImpl hokWebSSOprofileConsumer() { return new WebSSOProfileConsumerHoKImpl(); }
Example #8
Source File: InsightsSecurityConfigurationAdapterSAML.java From Insights with Apache License 2.0 | 4 votes |
/** * SAML 2.0 Holder-of-Key Web SSO profile,not used but autowired... * * @return */ @Bean @Conditional(InsightsSAMLBeanInitializationCondition.class) public WebSSOProfileConsumerHoKImpl hokWebSSOProfile() { return new WebSSOProfileConsumerHoKImpl(); }
Example #9
Source File: WebSSOProfileHoKConsumerConfigurer.java From spring-boot-security-saml with MIT License | 4 votes |
public WebSSOProfileHoKConsumerConfigurer(WebSSOProfileConsumerHoKImpl hokProfileConsumer) { this.hokProfileConsumer = hokProfileConsumer; }
Example #10
Source File: WebSSOProfileHoKConsumerConfigurer.java From spring-boot-security-saml with MIT License | 4 votes |
@Override public void init(ServiceProviderBuilder builder) throws Exception { hokProfileConsumerBean = builder.getSharedObject(WebSSOProfileConsumerHoKImpl.class); }
Example #11
Source File: WebSSOProfileHoKConsumerConfigurer.java From spring-boot-security-saml with MIT License | 4 votes |
@VisibleForTesting protected WebSSOProfileConsumerHoKImpl createDefaultWebSSOProfileConsumerHoK() { return new WebSSOProfileConsumerHoKImpl(); }
Example #12
Source File: WebSSOProfileHoKConsumerConfigurerTest.java From spring-boot-security-saml with MIT License | 4 votes |
@Test public void init() throws Exception { WebSSOProfileHoKConsumerConfigurer configurer = new WebSSOProfileHoKConsumerConfigurer(); configurer.init(builder); verify(builder).getSharedObject(eq(WebSSOProfileConsumerHoKImpl.class)); }
Example #13
Source File: WebSecurityConfig.java From spring-boot-security-saml-sample with Apache License 2.0 | 4 votes |
@Bean public WebSSOProfileConsumerHoKImpl hokWebSSOprofileConsumer() { return new WebSSOProfileConsumerHoKImpl(); }
Example #14
Source File: WebSecurityConfig.java From spring-boot-security-saml-sample with Apache License 2.0 | 4 votes |
@Bean public WebSSOProfileConsumerHoKImpl hokWebSSOProfile() { return new WebSSOProfileConsumerHoKImpl(); }