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 null
public java.lang.String getName()
getName
in interface java.security.Principal
Principal.getName()
@CheckReturnValue public boolean equals(java.lang.Object obj)
equals
in interface java.security.Principal
equals
in class java.lang.Object
obj
- the object to compareObject.equals(java.lang.Object)
@CheckReturnValue public int hashCode()
hashCode
in interface java.security.Principal
hashCode
in class java.lang.Object
Object.hashCode()
@CheckReturnValue @Nonnull public java.lang.String toString()
toString
in interface java.security.Principal
toString
in class java.lang.Object
Object.toString()
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.