public final class UnresolvedPrincipal
extends java.lang.Object
implements java.security.Principal, java.io.Serializable
UnresolvedPermission
.Constructor and Description |
---|
UnresolvedPrincipal(java.lang.String name)
Constructs a new UnresolvedPrincipal instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
An unresolved principal is equal to another
unresolved principal if their names match.
|
java.lang.String |
getName()
Returns the name of the principal.
|
int |
hashCode()
The hashCode of this object is equal to the hash code of its name.
|
java.lang.String |
toString()
Returns a String representation of the UnresolvedPrincipal.
|
public UnresolvedPrincipal(java.lang.String name)
name
- the name of the Principalpublic java.lang.String getName()
getName
in interface java.security.Principal
Principal.getName()
@CheckReturnValue @Nonnull public java.lang.String toString()
toString
in interface java.security.Principal
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in interface java.security.Principal
equals
in class java.lang.Object
obj
- the object to compare to this oneObject.equals(java.lang.Object)
@CheckReturnValue public int hashCode()
hashCode
in interface java.security.Principal
hashCode
in class java.lang.Object
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.