Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mortbay.http
Class HashUserRealm.WrappedUser  view HashUserRealm.WrappedUser download HashUserRealm.WrappedUser.java

java.lang.Object
  extended byorg.mortbay.http.HashUserRealm.User
      extended byorg.mortbay.http.HashUserRealm.WrappedUser
All Implemented Interfaces:
java.security.Principal
Enclosing class:
HashUserRealm

private class HashUserRealm.WrappedUser
extends HashUserRealm.User


Field Summary
private  java.lang.String role
           
(package private)  java.util.List roles
           
private  java.security.Principal user
           
 
Constructor Summary
(package private) HashUserRealm.WrappedUser(java.security.Principal user, java.lang.String role)
           
 
Method Summary
 java.lang.String getName()
          This method returns a String that names this Principal.
(package private)  java.security.Principal getUserPrincipal()
           
 boolean isAuthenticated()
           
 boolean isUserInRole(java.lang.String role)
           
 java.lang.String toString()
          This method returns a String representation of this Principal.
 
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 java.security.Principal user

role

private java.lang.String role

roles

java.util.List roles
Constructor Detail

HashUserRealm.WrappedUser

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

getUserPrincipal

java.security.Principal getUserPrincipal()

getName

public java.lang.String getName()
Description copied from interface: java.security.Principal
This method returns a String that names this Principal.

Specified by:
getName in interface java.security.Principal
Overrides:
getName in class HashUserRealm.User

isAuthenticated

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

isUserInRole

public boolean isUserInRole(java.lang.String role)

toString

public java.lang.String toString()
Description copied from interface: java.security.Principal
This method returns a String representation of this Principal.

Specified by:
toString in interface java.security.Principal