Class FlowableTokenAuthenticationProvider
- java.lang.Object
-
- com.flowable.core.spring.security.token.FlowableTokenAuthenticationProvider
-
- All Implemented Interfaces:
AuthenticationProvider
public class FlowableTokenAuthenticationProvider extends Object implements AuthenticationProvider
- Author:
- Filip Hrisafov
-
-
Field Summary
Fields Modifier and Type Field Description protected com.nimbusds.jwt.proc.JWTProcessor<com.nimbusds.jose.proc.SecurityContext>
jwtProcessor
protected PersistentTokenService
persistentTokenService
-
Constructor Summary
Constructors Constructor Description FlowableTokenAuthenticationProvider(PersistentTokenService persistentTokenService, com.nimbusds.jwt.proc.JWTProcessor<com.nimbusds.jose.proc.SecurityContext> jwtProcessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Authentication
authenticate(Authentication authentication)
boolean
supports(Class<?> authentication)
-
-
-
Field Detail
-
persistentTokenService
protected final PersistentTokenService persistentTokenService
-
jwtProcessor
protected final com.nimbusds.jwt.proc.JWTProcessor<com.nimbusds.jose.proc.SecurityContext> jwtProcessor
-
-
Constructor Detail
-
FlowableTokenAuthenticationProvider
public FlowableTokenAuthenticationProvider(PersistentTokenService persistentTokenService, com.nimbusds.jwt.proc.JWTProcessor<com.nimbusds.jose.proc.SecurityContext> jwtProcessor)
-
-
Method Detail
-
authenticate
public Authentication authenticate(Authentication authentication) throws AuthenticationException
- Specified by:
authenticate
in interfaceAuthenticationProvider
- Throws:
AuthenticationException
-
supports
public boolean supports(Class<?> authentication)
- Specified by:
supports
in interfaceAuthenticationProvider
-
-