public final class GroupPrincipal extends java.lang.Object implements java.security.Principal, java.io.Serializable
Group,
Serialized Form| Constructor and Description |
|---|
GroupPrincipal(java.lang.String group)
Constructs a new GroupPrincipal object with a supplied name.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Two GroupPrincipals are equal if their names are equal.
|
java.lang.String |
getName()
Returns the name of the group principal.
|
int |
hashCode()
Returns the hashcode for this object.
|
java.lang.String |
toString()
Returns a string representation of this object.
|
public GroupPrincipal(java.lang.String group)
group - the wiki group; cannot be nullpublic java.lang.String getName()
getName in interface java.security.PrincipalPrincipal.getName()public boolean equals(java.lang.Object obj)
equals in interface java.security.Principalequals in class java.lang.Objectobj - the object to compareObject.equals(java.lang.Object)public int hashCode()
hashCode in interface java.security.PrincipalhashCode in class java.lang.ObjectObject.hashCode()public java.lang.String toString()
toString in interface java.security.PrincipaltoString in class java.lang.ObjectObject.toString()Copyright (c) 2001-2022 The Apache Software Foundation. All rights reserved.