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 givenauthorizationToken
.
-
-
-
Method Detail
-
auth
java.util.Map<java.lang.String,com.auth0.jwt.interfaces.Claim> auth(java.lang.String authorizationToken)
Reads the Claims from the givenauthorizationToken
.- Parameters:
authorizationToken
- a JWT that may contain claims.- Returns:
- the claims in the
authorizationToken
asMap
with the key as name of the claim and the value asClaim
value.
-
-