Class FlowableTokenAuthenticationProvider
- java.lang.Object
-
- com.flowable.core.spring.security.token.FlowableTokenAuthenticationProvider
-
- All Implemented Interfaces:
org.springframework.security.authentication.AuthenticationProvider
public class FlowableTokenAuthenticationProvider extends java.lang.Object implements org.springframework.security.authentication.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 org.springframework.security.core.Authentication
authenticate(org.springframework.security.core.Authentication authentication)
boolean
supports(java.lang.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 org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationException
- Specified by:
authenticate
in interfaceorg.springframework.security.authentication.AuthenticationProvider
- Throws:
org.springframework.security.core.AuthenticationException
-
supports
public boolean supports(java.lang.Class<?> authentication)
- Specified by:
supports
in interfaceorg.springframework.security.authentication.AuthenticationProvider
-
-