Class JWTAuthenticationProvider
- java.lang.Object
-
- org.apache.syncope.core.spring.security.JWTAuthenticationProvider
-
- All Implemented Interfaces:
AuthenticationProvider
public class JWTAuthenticationProvider extends Object implements AuthenticationProvider
Attempts to authenticate the passedJWTAuthentication
object, returning a fully populatedAuthentication
object (including granted authorities) if successful.
-
-
Field Summary
Fields Modifier and Type Field Description protected AuthDataAccessor
dataAccessor
-
Constructor Summary
Constructors Constructor Description JWTAuthenticationProvider(AuthDataAccessor dataAccessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Authentication
authenticate(Authentication authentication)
boolean
supports(Class<?> authentication)
-
-
-
Field Detail
-
dataAccessor
protected final AuthDataAccessor dataAccessor
-
-
Constructor Detail
-
JWTAuthenticationProvider
public JWTAuthenticationProvider(AuthDataAccessor dataAccessor)
-
-
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
-
-