public final class AnonymousPrincipal extends Object implements Principal, Serializable
Constructor and Description |
---|
AnonymousPrincipal()
Construct a new instance (should not be used; call
getInstance() instead). |
AnonymousPrincipal(String ignored)
Construct a new instance (should not be used; call
getInstance() instead). |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Determine whether the given object is also an anonymous principal.
|
static AnonymousPrincipal |
getInstance()
Get the anonymous principal instance.
|
String |
getName()
Get the principal name (always "anonymous").
|
int |
hashCode()
Get the hash code of this principal.
|
String |
toString()
Get a representation of the principal name (always "anonymous").
|
public AnonymousPrincipal()
getInstance()
instead).public AnonymousPrincipal(String ignored)
getInstance()
instead).ignored
- ignoredpublic static AnonymousPrincipal getInstance()
public String getName()
public boolean equals(Object o)
public int hashCode()
Copyright © 2020 JBoss by Red Hat. All rights reserved.