@Singleton public class DefaultRolesFinder extends Object implements RolesFinder
RolesFinder
.Constructor and Description |
---|
DefaultRolesFinder(TokenConfiguration tokenConfiguration)
Constructs a Roles Parser.
|
Modifier and Type | Method and Description |
---|---|
List<String> |
findInClaims(Claims claims)
Retrieves the list of roles from the provided claims.
|
public DefaultRolesFinder(TokenConfiguration tokenConfiguration)
tokenConfiguration
- General Token Configuration@Nonnull public List<String> findInClaims(@Nonnull Claims claims)
RolesFinder
findInClaims
in interface RolesFinder
claims
- The claims of the token.