org.eclipse.jetty.security
Class SpnegoUserIdentity

java.lang.Object
  extended by org.eclipse.jetty.security.SpnegoUserIdentity
All Implemented Interfaces:
UserIdentity

public class SpnegoUserIdentity
extends Object
implements UserIdentity


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.jetty.server.UserIdentity
UserIdentity.Scope, UserIdentity.UnauthenticatedUserIdentity
 
Field Summary
 
Fields inherited from interface org.eclipse.jetty.server.UserIdentity
UNAUTHENTICATED_IDENTITY
 
Constructor Summary
SpnegoUserIdentity(Subject subject, Principal principal, List<String> roles)
           
 
Method Summary
 Subject getSubject()
           
 Principal getUserPrincipal()
           
 boolean isUserInRole(String role, UserIdentity.Scope scope)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpnegoUserIdentity

public SpnegoUserIdentity(Subject subject,
                          Principal principal,
                          List<String> roles)
Method Detail

getSubject

public Subject getSubject()
Specified by:
getSubject in interface UserIdentity

getUserPrincipal

public Principal getUserPrincipal()
Specified by:
getUserPrincipal in interface UserIdentity

isUserInRole

public boolean isUserInRole(String role,
                            UserIdentity.Scope scope)
Specified by:
isUserInRole in interface UserIdentity


Copyright © 1995-2011 Mort Bay Consulting. All Rights Reserved.