org.mortbay.jetty.security
Class HashUserRealm.WrappedUser
java.lang.Object
org.mortbay.jetty.security.HashUserRealm.User
org.mortbay.jetty.security.HashUserRealm.WrappedUser
- All Implemented Interfaces:
- Principal
- Enclosing class:
- HashUserRealm
private class HashUserRealm.WrappedUser
- extends HashUserRealm.User
user
private Principal user
role
private String role
HashUserRealm.WrappedUser
HashUserRealm.WrappedUser(Principal user,
String role)
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)