org.mortbay.jetty.security
Class HashUserRealm.WrappedUser

java.lang.Object
  extended by org.mortbay.jetty.security.HashUserRealm.User
      extended by org.mortbay.jetty.security.HashUserRealm.WrappedUser
All Implemented Interfaces:
Principal
Enclosing class:
HashUserRealm

private class HashUserRealm.WrappedUser
extends HashUserRealm.User


Field Summary
private  String role
           
private  Principal user
           
 
Fields inherited from class org.mortbay.jetty.security.HashUserRealm.User
roles
 
Constructor Summary
HashUserRealm.WrappedUser(Principal user, String role)
           
 
Method Summary
 String getName()
           
(package private)  Principal getUserPrincipal()
           
 boolean isAuthenticated()
           
 boolean isUserInRole(String role)
           
 
Methods inherited from class org.mortbay.jetty.security.HashUserRealm.User
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.security.Principal
equals, hashCode
 

Field Detail

user

private Principal user

role

private String role
Constructor Detail

HashUserRealm.WrappedUser

HashUserRealm.WrappedUser(Principal user,
                          String role)
Method Detail

getUserPrincipal

Principal getUserPrincipal()

getName

public String getName()
Specified by:
getName in interface Principal
Overrides:
getName in class HashUserRealm.User

isAuthenticated

public boolean isAuthenticated()
Overrides:
isAuthenticated in class HashUserRealm.User

isUserInRole

public boolean isUserInRole(String role)