Class SimpleIdentity

    • Constructor Detail

      • SimpleIdentity

        public SimpleIdentity​(String name)
      • SimpleIdentity

        public SimpleIdentity​(String name,
                              String roleName)
      • SimpleIdentity

        public SimpleIdentity​(String name,
                              Role role)
    • Method Detail

      • asGroup

        public Group asGroup()
        Description copied from interface: Identity
        Return a Group only if it has been set
        Specified by:
        asGroup in interface Identity
        Returns:
      • asPrincipal

        public Principal asPrincipal()
        Description copied from interface: Identity
        Returns a Principal only if it set
        Specified by:
        asPrincipal in interface Identity
        Returns:
      • getName

        public String getName()
        Description copied from interface: Identity
        Get the name of the identity
        Specified by:
        getName in interface Identity
        Returns:
      • getRole

        public Role getRole()
        Description copied from interface: Identity
        Get the Role (Role or RoleGroup)
        Specified by:
        getRole in interface Identity
        Returns:
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object