public class SpnegoUserIdentity extends Object implements UserIdentity
UserIdentity.Scope, UserIdentity.UnauthenticatedUserIdentity
UNAUTHENTICATED_IDENTITY
Constructor and Description |
---|
SpnegoUserIdentity(Subject subject,
Principal principal,
List<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.
|
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.