@Singleton public class DefaultRolesFinder extends java.lang.Object implements RolesFinder
RolesFinder
.Constructor and Description |
---|
DefaultRolesFinder(TokenConfiguration tokenConfiguration)
Constructs a Roles Parser.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
findInClaims(Claims claims)
Retrieves the list of roles from the provided claims.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
hasAnyRequiredRoles, hasAnyRequiredRoles, hasAnyRequiredRoles
public DefaultRolesFinder(TokenConfiguration tokenConfiguration)
tokenConfiguration
- General Token Configuration@NonNull public java.util.List<java.lang.String> findInClaims(@NonNull Claims claims)
RolesFinder
findInClaims
in interface RolesFinder
claims
- The claims of the token.