Class AuthenticationJWTClaimsSetAdapter
java.lang.Object
io.micronaut.security.token.jwt.validator.AuthenticationJWTClaimsSetAdapter
- All Implemented Interfaces:
Authentication
,Serializable
,Principal
Adapter from
JWTClaimsSet
to Authentication
.- Since:
- 1.0
- Author:
- Sergio del Amo
- See Also:
-
Constructor Summary
ConstructorDescriptionAuthenticationJWTClaimsSetAdapter
(@Nullable com.nimbusds.jwt.JWTClaimsSet claimSet) -
Method Summary
Modifier and TypeMethodDescriptionIn order to correctly implement theSerializable
specification, this map should be Map<String, Serializable>, however that would place a burden on those not requiring serialization, forcing their values to conform to that spec.@Nullable String
getName()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.security.authentication.Authentication
getRoles
-
Constructor Details
-
AuthenticationJWTClaimsSetAdapter
public AuthenticationJWTClaimsSetAdapter(@Nullable @Nullable com.nimbusds.jwt.JWTClaimsSet claimSet) - Parameters:
claimSet
- JSON Web Token (JWT) claims set.
-
-
Method Details
-
getAttributes
Description copied from interface:Authentication
In order to correctly implement theSerializable
specification, this map should be Map<String, Serializable>, however that would place a burden on those not requiring serialization, forcing their values to conform to that spec. This is left intentionally as Object in order to meet both use cases and those requiring serialization must ensure all values in the map implementSerializable
.- Specified by:
getAttributes
in interfaceAuthentication
- Returns:
- Any additional attributes in the authentication
-
getName
-