@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> |
resolveRoles(java.util.Map<java.lang.String,java.lang.Object> attributes)
Retrieves the list of roles from the User Attributes.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findInClaims, hasAnyRequiredRoles, hasAnyRequiredRoles, hasAnyRequiredRoles, hasAnyRequiredRoles
public DefaultRolesFinder(TokenConfiguration tokenConfiguration)
tokenConfiguration
- General Token Configuration@NonNull public java.util.List<java.lang.String> resolveRoles(@Nullable java.util.Map<java.lang.String,java.lang.Object> attributes)
RolesFinder
resolveRoles
in interface RolesFinder
attributes
- User's attributes