Principal.Anonymous, Principal.SuperUser
Modifier and Type | Field and Description |
---|---|
static Principal.Anonymous |
ANON |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getDisplayName() |
java.lang.String |
getUserName() |
int |
hashCode() |
static boolean |
isAnon(Principal p)
Check whether a given principal represents ANON -- either by being null or
by being equal to ANON.
|
public static final Principal.Anonymous ANON
public java.lang.String getUserName()
getUserName
in interface Principal
public java.lang.String getDisplayName()
getDisplayName
in interface Principal
public static boolean isAnon(Principal p)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object