Class AnonymousPrincipal
- java.lang.Object
- 
- org.wildfly.security.auth.principal.AnonymousPrincipal
 
- 
- All Implemented Interfaces:
- Serializable,- Principal
 
 public final class AnonymousPrincipal extends Object implements Principal, Serializable The singleton anonymous principal.- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description AnonymousPrincipal()Construct a new instance (should not be used; callgetInstance()instead).AnonymousPrincipal(String ignored)Construct a new instance (should not be used; callgetInstance()instead).
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Determine whether the given object is also an anonymous principal.static AnonymousPrincipalgetInstance()Get the anonymous principal instance.StringgetName()Get the principal name (always "anonymous").inthashCode()Get the hash code of this principal.StringtoString()Get a representation of the principal name (always "anonymous").
 
- 
- 
- 
Constructor Detail- 
AnonymousPrincipalpublic AnonymousPrincipal() Construct a new instance (should not be used; callgetInstance()instead).
 - 
AnonymousPrincipalpublic AnonymousPrincipal(String ignored) Construct a new instance (should not be used; callgetInstance()instead).- Parameters:
- ignored- ignored
 
 
- 
 - 
Method Detail- 
getInstancepublic static AnonymousPrincipal getInstance() Get the anonymous principal instance.- Returns:
- the anonymous principal instance
 
 - 
getNamepublic String getName() Get the principal name (always "anonymous").
 - 
equalspublic boolean equals(Object o) Determine whether the given object is also an anonymous principal.
 - 
hashCodepublic int hashCode() Get the hash code of this principal.
 
- 
 
-