UserInfo - the type of user info objects wrapped by this instancepublic class BasicAuthPrincipal<UserInfo>
extends Object
implements 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(Object o) |
String |
getName() |
int |
hashCode() |
String |
toString() |
UserInfo |
userInfo()
Get the wrapped
UserInfo. |
public BasicAuthPrincipal(UserInfo userInfo)
userInfo - the wrapped UserInfopublic UserInfo userInfo()
UserInfo.UserInfopublic String getName()
getName in interface Principalpublic String toString()
toString in interface PrincipaltoString in class Objectpublic boolean equals(Object o)
equals in interface Principalequals in class Objectpublic int hashCode()
hashCode in interface PrincipalhashCode in class Object