org.eclipse.jetty.security
public class SpnegoUserIdentity extends java.lang.Object implements UserIdentity
UserIdentity.Scope, UserIdentity.UnauthenticatedUserIdentity
UNAUTHENTICATED_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 UserIdentity
public java.security.Principal getUserPrincipal()
getUserPrincipal
in interface UserIdentity
public boolean isUserInRole(java.lang.String role, UserIdentity.Scope scope)
UserIdentity
isUserInRole
in interface UserIdentity
role
- A role name.Copyright © 2014. All Rights Reserved.