Class EveryonePrincipal
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.security.principal.EveryonePrincipal
-
- All Implemented Interfaces:
java.security.Principal,GroupPrincipal,JackrabbitPrincipal
public final class EveryonePrincipal extends java.lang.Object implements JackrabbitPrincipal, GroupPrincipal
Built-in principal group that has every other principal as member.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNAME
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)static EveryonePrincipalgetInstance()java.lang.StringgetName()inthashCode()booleanisMember(@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.StringtoString()
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static EveryonePrincipal getInstance()
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfacejava.security.Principal
-
isMember
public boolean isMember(@NotNull @NotNull java.security.Principal member)Description copied from interface:GroupPrincipalReturns 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:
isMemberin interfaceGroupPrincipal- 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:GroupPrincipalReturns 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:
membersin interfaceGroupPrincipal- Returns:
- an enumeration of the group members.
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacejava.security.Principal- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacejava.security.Principal- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Specified by:
toStringin interfacejava.security.Principal- Overrides:
toStringin classjava.lang.Object
-
-