public final class GroupPrincipal
extends java.lang.Object
implements java.security.Principal
Group| 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()@CheckReturnValue 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)@CheckReturnValue public int hashCode()
hashCode in interface java.security.PrincipalhashCode in class java.lang.ObjectObject.hashCode()@CheckReturnValue @Nonnull public java.lang.String toString()
toString in interface java.security.PrincipaltoString in class java.lang.ObjectObject.toString()stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.