Interface TokenAuthorizer

  • All Known Implementing Classes:
    AuthService
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface TokenAuthorizer
    • Method Summary

      All Methods Instance Methods Abstract 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.
    • Method Detail

      • auth

        java.util.Map<java.lang.String,​com.auth0.jwt.interfaces.Claim> auth​(java.lang.String authorizationToken)
        Reads the Claims from the given authorizationToken.
        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.