Class DefaultJwtAuthenticationFactory
- java.lang.Object
-
- io.micronaut.security.token.jwt.validator.DefaultJwtAuthenticationFactory
-
- All Implemented Interfaces:
JwtAuthenticationFactory,TokenAuthenticationFactory<com.nimbusds.jwt.JWT>
@Singleton public class DefaultJwtAuthenticationFactory extends java.lang.Object implements JwtAuthenticationFactory
Extracts the JWT claims and uses theAuthenticationJWTClaimsSetAdapterto construction anAuthenticationobject.- Since:
- 1.1.0
- Author:
- Sergio del Amo
-
-
Constructor Summary
Constructors Constructor Description DefaultJwtAuthenticationFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<Authentication>createAuthentication(com.nimbusds.jwt.JWT token)
-
-
-
Method Detail
-
createAuthentication
public java.util.Optional<Authentication> createAuthentication(com.nimbusds.jwt.JWT token)
- Specified by:
createAuthenticationin interfaceJwtAuthenticationFactory- Specified by:
createAuthenticationin interfaceTokenAuthenticationFactory<com.nimbusds.jwt.JWT>- Parameters:
token- The token- Returns:
- An Authentication object.
-
-