Class AnonymousPrincipal
java.lang.Object
org.wildfly.security.auth.principal.AnonymousPrincipal
- All Implemented Interfaces:
Serializable,Principal
The singleton anonymous principal.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct a new instance (should not be used; callgetInstance()instead).AnonymousPrincipal(String ignored) Construct a new instance (should not be used; callgetInstance()instead). -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermine whether the given object is also an anonymous principal.static AnonymousPrincipalGet the anonymous principal instance.getName()Get the principal name (always "anonymous").inthashCode()Get the hash code of this principal.toString()Get a representation of the principal name (always "anonymous").
-
Constructor Details
-
AnonymousPrincipal
public AnonymousPrincipal()Construct a new instance (should not be used; callgetInstance()instead). -
AnonymousPrincipal
Construct a new instance (should not be used; callgetInstance()instead).- Parameters:
ignored- ignored
-
-
Method Details
-
getInstance
Get the anonymous principal instance.- Returns:
- the anonymous principal instance
-
getName
Get the principal name (always "anonymous"). -
equals
Determine whether the given object is also an anonymous principal. -
hashCode
public int hashCode()Get the hash code of this principal. -
toString
Get a representation of the principal name (always "anonymous").
-