public class SpnegoUserIdentity extends java.lang.Object implements UserIdentity
UserIdentity.Scope, UserIdentity.UnauthenticatedUserIdentityUNAUTHENTICATED_IDENTITY| Constructor and Description |
|---|
SpnegoUserIdentity(javax.security.auth.Subject subject,
java.security.Principal principal,
java.util.List<java.lang.String> roles) |
| Modifier and Type | Method and Description |
|---|---|
javax.security.auth.Subject |
getSubject() |
java.security.Principal |
getUserPrincipal() |
boolean |
isUserInRole(java.lang.String role,
UserIdentity.Scope scope)
Check if the user is in a role.
|
public SpnegoUserIdentity(javax.security.auth.Subject subject,
java.security.Principal principal,
java.util.List<java.lang.String> roles)
public javax.security.auth.Subject getSubject()
getSubject in interface UserIdentitypublic java.security.Principal getUserPrincipal()
getUserPrincipal in interface UserIdentitypublic boolean isUserInRole(java.lang.String role,
UserIdentity.Scope scope)
UserIdentityisUserInRole in interface UserIdentityrole - A role name.Copyright © 2013 FuseSource, Corp.. All Rights Reserved.