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 SummaryConstructorsConstructorDescriptionAuthenticationJWTClaimsSetAdapter(@Nullable com.nimbusds.jwt.JWTClaimsSet claimSet) 
- 
Method SummaryModifier and TypeMethodDescriptionIn order to correctly implement theSerializablespecification, 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 StringgetName()Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.security.authentication.AuthenticationgetRoles
- 
Constructor Details- 
AuthenticationJWTClaimsSetAdapterpublic AuthenticationJWTClaimsSetAdapter(@Nullable @Nullable com.nimbusds.jwt.JWTClaimsSet claimSet) - Parameters:
- claimSet- JSON Web Token (JWT) claims set.
 
 
- 
- 
Method Details- 
getAttributesDescription copied from interface:AuthenticationIn order to correctly implement theSerializablespecification, 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:
- getAttributesin interface- Authentication
- Returns:
- Any additional attributes in the authentication
 
- 
getName
 
-