Class SimpleRole

  • All Implemented Interfaces:

    public class SimpleRole
    extends 
    implements 
    A simple representation of a security role that has a name and a collection of permissions. This object can be used internally by Realms to maintain authorization state.
    Since:
    0.2
    See Also:
    Serialized Form
    • Field Detail

      • name

        protected  name
    • Constructor Detail

      • SimpleRole

        public SimpleRole()
      • SimpleRole

        public SimpleRole​( name)
      • SimpleRole

        public SimpleRole​( name,
                          <Permission> permissions)
    • Method Detail

      • getName

        public  getName()
      • setName

        public void setName​( name)
      • getPermissions

        public <Permission> getPermissions()
      • setPermissions

        public void setPermissions​(<Permission> permissions)
      • add

        public void add​(Permission permission)
      • addAll

        public void addAll​(<Permission> perms)
      • isPermitted

        public boolean isPermitted​(Permission p)
      • hashCode

        public int hashCode()
        Overrides:
         in class 
      • equals

        public boolean equals​( o)
        Overrides:
         in class 
      • toString

        public  toString()
        Overrides:
         in class