public class FlowableTokenAuthenticationConfigurer<H extends HttpSecurityBuilder<H>> extends AbstractHttpConfigurer<FlowableTokenAuthenticationConfigurer<H>,H>
| Modifier and Type | Field and Description |
|---|---|
protected ApplicationContext |
applicationContext |
protected PersistentTokenService |
persistentTokenService |
protected String |
tokenRequestParameter |
protected String |
tokenSigningSecret |
| Constructor and Description |
|---|
FlowableTokenAuthenticationConfigurer(ApplicationContext applicationContext,
String tokenSigningSecret) |
| Modifier and Type | Method and Description |
|---|---|
protected FlowableTokenAuthenticationProvider |
build() |
void |
configure(H builder) |
protected com.nimbusds.jwt.proc.JWTProcessor<com.nimbusds.jose.proc.SecurityContext> |
createJWTProcessor() |
protected PersistentTokenService |
getPersistentTokenService() |
void |
init(H builder) |
FlowableTokenAuthenticationConfigurer<H> |
persistentTokenService(PersistentTokenService persistentTokenService)
The
PersistentTokenService that should be used for loading and storing tokens. |
FlowableTokenAuthenticationConfigurer<H> |
tokenRequestParameter(String tokenRequestParameter)
The request parameter where the token will be stored.
|
disable, withObjectPostProcessoraddObjectPostProcessor, and, getBuilder, postProcess, setBuilderprotected final ApplicationContext applicationContext
protected final String tokenSigningSecret
protected PersistentTokenService persistentTokenService
protected String tokenRequestParameter
public FlowableTokenAuthenticationConfigurer(ApplicationContext applicationContext, String tokenSigningSecret)
public void init(H builder) throws Exception
init in interface SecurityConfigurer<DefaultSecurityFilterChain,H extends HttpSecurityBuilder<H>>init in class SecurityConfigurerAdapter<DefaultSecurityFilterChain,H extends HttpSecurityBuilder<H>>Exceptionpublic void configure(H builder) throws Exception
configure in interface SecurityConfigurer<DefaultSecurityFilterChain,H extends HttpSecurityBuilder<H>>configure in class SecurityConfigurerAdapter<DefaultSecurityFilterChain,H extends HttpSecurityBuilder<H>>Exceptionprotected FlowableTokenAuthenticationProvider build()
protected com.nimbusds.jwt.proc.JWTProcessor<com.nimbusds.jose.proc.SecurityContext> createJWTProcessor()
protected PersistentTokenService getPersistentTokenService()
public FlowableTokenAuthenticationConfigurer<H> persistentTokenService(PersistentTokenService persistentTokenService)
PersistentTokenService that should be used for loading and storing tokens.
If not set then the one from the ApplicationContext will be usedpersistentTokenService - the persistent token service that should be usedpublic FlowableTokenAuthenticationConfigurer<H> tokenRequestParameter(String tokenRequestParameter)
token.tokenRequestParameter - the token request parameter