Class StaticRolesMapper

  • All Implemented Interfaces:
    UserToRolesMapper, Configurable

    public class StaticRolesMapper
    extends java.lang.Object
    implements UserToRolesMapper
    Assign static roles to authenticated users

    Configuration parameters:

    • roles role list separated by comma
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Collection<java.lang.String> roles  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void configure​(ConfigProperties configProperties)
      configure the component
      java.util.Collection<java.lang.String> mapUserToRoles​(AuthenticationInfo authenticationInfo)
      Map user identified by authentication info to a set of granted roles.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • roles

        private java.util.Collection<java.lang.String> roles
    • Constructor Detail

      • StaticRolesMapper

        public StaticRolesMapper()
      • StaticRolesMapper

        public StaticRolesMapper​(java.lang.String... roles)