UserInfo
- the type of user info objects wrapped by this instancepublic class BasicAuthPrincipal<UserInfo>
extends java.lang.Object
implements java.security.Principal
Principal
that wraps a user provided UserInfo
.Constructor and Description |
---|
BasicAuthPrincipal(UserInfo userInfo)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getName() |
int |
hashCode() |
java.lang.String |
toString() |
UserInfo |
userInfo()
Get the wrapped
UserInfo . |
public BasicAuthPrincipal(UserInfo userInfo)
userInfo
- the wrapped UserInfo
public UserInfo userInfo()
UserInfo
.UserInfo
public java.lang.String getName()
getName
in interface java.security.Principal
public java.lang.String toString()
toString
in interface java.security.Principal
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
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