org.springframework.security.config.annotation.SecurityConfigurerAdapter Java Examples

The following examples show how to use org.springframework.security.config.annotation.SecurityConfigurerAdapter. 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: ServiceProviderBuilder.java    From spring-boot-security-saml with MIT License 5 votes vote down vote up
@SuppressWarnings("unchecked")
@SneakyThrows
private <C extends SecurityConfigurerAdapter<Void, ServiceProviderBuilder>> C getOrApply(
        C configurer) {
    C existingConfig = (C) getConfigurer(configurer.getClass());
    if (existingConfig != null) {
        return existingConfig;
    }
    return apply(configurer);
}
 
Example #2
Source File: AbstractChannelSecurityConfigurer.java    From cola with MIT License 4 votes vote down vote up
protected AbstractChannelSecurityConfigurer(SecurityConfigurerAdapter<DefaultSecurityFilterChain, HttpSecurity> adapter) {
	this.adapter = adapter;
}
 
Example #3
Source File: ServiceProviderBuilder.java    From spring-boot-security-saml with MIT License 4 votes vote down vote up
@SuppressWarnings("unchecked")
@SneakyThrows
private <C extends SecurityConfigurerAdapter<Void, ServiceProviderBuilder>> void reApply(C configurer) {
    C existing = (C) removeConfigurer(configurer.getClass());
    apply(existing);
}