Class GenericRole<UD extends UserDatabase>

  • Type Parameters:
    UD - The specific type of UserDase with which this role is associated
    All Implemented Interfaces:
    java.security.Principal, Role
    Direct Known Subclasses:
    MemoryRole

    public class GenericRole<UD extends UserDatabase>
    extends AbstractRole

    Concrete implementation of Role for a UserDatabase.

    Author:
    Craig R. McClanahan
    • Method Detail

      • setDescription

        public void setDescription​(java.lang.String description)
        Description copied from class: AbstractRole
        Set the description of this role.
        Specified by:
        setDescription in interface Role
        Overrides:
        setDescription in class AbstractRole
        Parameters:
        description - The new description
      • setRolename

        public void setRolename​(java.lang.String rolename)
        Description copied from class: AbstractRole
        Set the role name of this role, which must be unique within the scope of a UserDatabase.
        Specified by:
        setRolename in interface Role
        Overrides:
        setRolename in class AbstractRole
        Parameters:
        rolename - The new role name
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface java.security.Principal
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface java.security.Principal
        Overrides:
        hashCode in class java.lang.Object