Class AuthService

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​com.auth0.jwt.interfaces.Claim> auth​(java.lang.String authorizationToken)
      Reads the Claims from the given authorizationToken.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AuthService

        public AuthService​(PublicKeyLoader publicKeyLoader,
                           long leeway)
    • Method Detail

      • auth

        public java.util.Map<java.lang.String,​com.auth0.jwt.interfaces.Claim> auth​(java.lang.String authorizationToken)
        Description copied from interface: TokenAuthorizer
        Reads the Claims from the given authorizationToken.
        Specified by:
        auth in interface TokenAuthorizer
        Parameters:
        authorizationToken - a JWT that may contain claims.
        Returns:
        the claims in the authorizationToken as Map with the key as name of the claim and the value as Claim value.