public class DefaultUserIdentity extends Object implements UserIdentity
UserIdentity.Scope, UserIdentity.UnauthenticatedUserIdentityUNAUTHENTICATED_IDENTITY| Constructor and Description |
|---|
DefaultUserIdentity(Subject subject,
Principal userPrincipal,
String[] roles) |
| Modifier and Type | Method and Description |
|---|---|
Subject |
getSubject() |
Principal |
getUserPrincipal() |
boolean |
isUserInRole(String role,
UserIdentity.Scope scope) |
String |
toString() |
public Subject getSubject()
getSubject in interface UserIdentitypublic Principal getUserPrincipal()
getUserPrincipal in interface UserIdentitypublic boolean isUserInRole(String role, UserIdentity.Scope scope)
isUserInRole in interface UserIdentityCopyright © 1995-2016 Webtide. All Rights Reserved.