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)
Check if the user is in a role.
|
String |
toString() |
public Subject getSubject()
getSubject in interface UserIdentitypublic Principal getUserPrincipal()
getUserPrincipal in interface UserIdentitypublic boolean isUserInRole(String role, UserIdentity.Scope scope)
UserIdentityisUserInRole in interface UserIdentityrole - A role name.Copyright © 1995-2015 Mort Bay Consulting. All Rights Reserved.