public class BasicPrincipal
extends java.lang.Object
implements java.security.Principal, java.io.Serializable
Constructor and Description |
---|
BasicPrincipal()
Zero-arg constructor for serialization.
|
BasicPrincipal(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object b) |
java.lang.String |
getName() |
int |
hashCode() |
java.lang.String |
toString() |
public BasicPrincipal()
public BasicPrincipal(java.lang.String name)
public java.lang.String getName()
getName
in interface java.security.Principal
public boolean equals(java.lang.Object b)
equals
in interface java.security.Principal
equals
in class java.lang.Object
public int hashCode()
hashCode
in interface java.security.Principal
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in interface java.security.Principal
toString
in class java.lang.Object