public class DefaultUserIdentity extends Object implements UserIdentity
UserIdentity.Scope, UserIdentity.UnauthenticatedUserIdentity
UNAUTHENTICATED_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 UserIdentity
public Principal getUserPrincipal()
getUserPrincipal
in interface UserIdentity
public boolean isUserInRole(String role, UserIdentity.Scope scope)
UserIdentity
isUserInRole
in interface UserIdentity
role
- A role name.Copyright © 1995-2015 Webtide. All Rights Reserved.