Class DefaultRolesFinder

java.lang.Object
io.micronaut.security.token.DefaultRolesFinder
All Implemented Interfaces:
RolesFinder

@Singleton public class DefaultRolesFinder extends Object implements RolesFinder
Default implementation of RolesFinder.
Since:
1.1.0
Author:
Sergio del Amo
  • Constructor Details

    • DefaultRolesFinder

      public DefaultRolesFinder(TokenConfiguration tokenConfiguration)
      Constructs a Roles Parser.
      Parameters:
      tokenConfiguration - General Token Configuration
  • Method Details

    • resolveRoles

      @NonNull public @NonNull List<String> resolveRoles(@Nullable @Nullable Map<String,Object> attributes)
      Description copied from interface: RolesFinder
      Retrieves the list of roles from the User Attributes.
      Specified by:
      resolveRoles in interface RolesFinder
      Parameters:
      attributes - User's attributes
      Returns:
      The granted roles.