Class AssignRealmNameRole

  • All Implemented Interfaces:
    UserToRolesMapper, Configurable

    public class AssignRealmNameRole
    extends java.lang.Object
    implements UserToRolesMapper
    Assign to user a role based on realm name *

    Configuration parameters:

    • roleNameFormat, optional by default is @{realm}
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String roleNameFormat  
    • 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

      • roleNameFormat

        private java.lang.String roleNameFormat
    • Constructor Detail

      • AssignRealmNameRole

        public AssignRealmNameRole()
      • AssignRealmNameRole

        public AssignRealmNameRole​(java.lang.String roleNameFormat)