Class EveryonePrincipal

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String NAME  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      static EveryonePrincipal getInstance()  
      java.lang.String getName()  
      int hashCode()  
      boolean isMember​(@NotNull java.security.Principal member)
      Returns true if the passed principal is a member of the group.
      @NotNull java.util.Enumeration<? extends java.security.Principal> members()
      Returns an enumeration of the members in the group.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.security.Principal

        implies
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface java.security.Principal
      • isMember

        public boolean isMember​(@NotNull
                                @NotNull java.security.Principal member)
        Description copied from interface: GroupPrincipal
        Returns true if the passed principal is a member of the group. This method does a recursive search, so if a principal belongs to a group which is a member of this group, true is returned.
        Specified by:
        isMember in interface GroupPrincipal
        Parameters:
        member - the principal whose membership is to be checked.
        Returns:
        true if the principal is a member of this group, false otherwise.
      • members

        @NotNull
        public @NotNull java.util.Enumeration<? extends java.security.Principal> members()
        Description copied from interface: GroupPrincipal
        Returns an enumeration of the members in the group. This includes both declared members and all principals that are indirect group members. The returned objects can be instances of either Principal or GroupPrincipal (which is a subclass of Principal).
        Specified by:
        members in interface GroupPrincipal
        Returns:
        an enumeration of the group members.
      • hashCode

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

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

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