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.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()
-
-
-
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:
getName
in interfacejava.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 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: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 interfaceGroupPrincipal
- Returns:
- an enumeration of the group members.
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacejava.security.Principal
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in interfacejava.security.Principal
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Specified by:
toString
in interfacejava.security.Principal
- Overrides:
toString
in classjava.lang.Object
-
-