org.jboss.jetty.security
Class JBossIdentityService.JBossUserIdentity

java.lang.Object
  extended by org.jboss.jetty.security.JBossIdentityService.JBossUserIdentity
All Implemented Interfaces:
org.eclipse.jetty.server.UserIdentity
Enclosing class:
JBossIdentityService

public class JBossIdentityService.JBossUserIdentity
extends Object
implements org.eclipse.jetty.server.UserIdentity


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

Constructor Detail

JBossIdentityService.JBossUserIdentity

public JBossIdentityService.JBossUserIdentity(Subject subject,
                                              Principal principal)
Method Detail

getRoles

public String[] getRoles()

getSubject

public Subject getSubject()
Specified by:
getSubject in interface org.eclipse.jetty.server.UserIdentity

getUserPrincipal

public Principal getUserPrincipal()
Specified by:
getUserPrincipal in interface org.eclipse.jetty.server.UserIdentity

isUserInRole

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


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