Class AuthenticationJWTClaimsSetAdapter

  • All Implemented Interfaces:
    Authentication, java.io.Serializable, java.security.Principal

    public class AuthenticationJWTClaimsSetAdapter
    extends java.lang.Object
    implements Authentication
    Adapter from JWTClaimsSet to Authentication.
    Since:
    1.0
    Author:
    Sergio del Amo
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.Object> getAttributes()  
      java.lang.String getName()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.security.Principal

        equals, hashCode, implies, toString
    • Constructor Detail

      • AuthenticationJWTClaimsSetAdapter

        public AuthenticationJWTClaimsSetAdapter​(@Nullable
                                                 com.nimbusds.jwt.JWTClaimsSet claimSet)
        Parameters:
        claimSet - JSON Web Token (JWT) claims set.
    • Method Detail

      • getAttributes

        @NonNull
        public java.util.Map<java.lang.String,​java.lang.Object> getAttributes()
        Specified by:
        getAttributes in interface Authentication
        Returns:
        Any additional attributes in the authentication
      • getName

        @Nullable
        public java.lang.String getName()
        Specified by:
        getName in interface java.security.Principal