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) |
String |
toString() |
public Subject getSubject()
getSubject
in interface UserIdentity
public Principal getUserPrincipal()
getUserPrincipal
in interface UserIdentity
public boolean isUserInRole(String role, UserIdentity.Scope scope)
isUserInRole
in interface UserIdentity
Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.