addFilter
(javax.servlet.Filter filter)
Adds a
Filter
that must be an instance of or extend one of the Filters
provided within the Security framework.
addFilterAfter
(javax.servlet.Filter filter,
Class
<? extends javax.servlet.Filter> afterFilter)
Allows adding a
Filter
after one of the known
Filter
classes.
addFilterBefore
(javax.servlet.Filter filter,
Class
<? extends javax.servlet.Filter> beforeFilter)
Allows adding a
Filter
before one of the known
Filter
classes.
authenticationProvider
(
AuthenticationProvider
authenticationProvider)
<C extends
SecurityConfigurer
<
DefaultSecurityFilterChain
,
H
>>
C
getConfigurer
(
Class
<C> clazz)
getSharedObject
(
Class
<C> sharedType)
Gets a shared Object.
<C extends
SecurityConfigurer
<
DefaultSecurityFilterChain
,
H
>>
C
removeConfigurer
(
Class
<C> clazz)
<C> void
setSharedObject
(
Class
<C> sharedType,
C object)
userDetailsService
(
UserDetailsService
userDetailsService)
Methods inherited from interface org.springframework.security.config.annotation.
SecurityBuilder
build
getConfigurer
<C extends SecurityConfigurer<DefaultSecurityFilterChain,H>> C getConfigurer(Class<C> clazz)
Gets the
SecurityConfigurer
by its class name or
null
if not
found. Note that object hierarchies are not considered.
Parameters:
clazz
- the Class of the
SecurityConfigurer
to attempt to get.
removeConfigurer
<C extends SecurityConfigurer<DefaultSecurityFilterChain,H>> C removeConfigurer(Class<C> clazz)
Removes the
SecurityConfigurer
by its class name or
null
if
not found. Note that object hierarchies are not considered.
Parameters:
clazz
- the Class of the
SecurityConfigurer
to attempt to remove.
Returns:
the
SecurityConfigurer
that was removed or null if not found
<C> void setSharedObject(Class<C> sharedType,
C object)
Parameters:
sharedType
- the Class to key the shared object by.
object
- the Object to store
getSharedObject
<C> C getSharedObject(Class<C> sharedType)
Gets a shared Object. Note that object heirarchies are not considered.
Parameters:
sharedType
- the type of the shared Object
Returns:
the shared Object or null if it is not found
authenticationProvider
H authenticationProvider(AuthenticationProvider authenticationProvider)
Parameters:
authenticationProvider
- the
AuthenticationProvider
to be added
Returns:
the
HttpSecurity
for further customizations
userDetailsService
H userDetailsService(UserDetailsService userDetailsService)
throws Exception
Parameters:
userDetailsService
- the
UserDetailsService
to be added
Returns:
the
HttpSecurity
for further customizations
Throws:
Exception
addFilterAfter
H addFilterAfter(javax.servlet.Filter filter,
Class<? extends javax.servlet.Filter> afterFilter)
Parameters:
filter
- the
Filter
to register after the type
afterFilter
afterFilter
- the Class of the known
Filter
.
Returns:
the
HttpSecurity
for further customizations
addFilterBefore
H addFilterBefore(javax.servlet.Filter filter,
Class<? extends javax.servlet.Filter> beforeFilter)
Parameters:
filter
- the
Filter
to register before the type
beforeFilter
beforeFilter
- the Class of the known
Filter
.
Returns:
the
HttpSecurity
for further customizations
addFilter
H addFilter(javax.servlet.Filter filter)