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

Quick Search    Search Deep

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

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

private class HashUserRealm.KnownUser
extends HashUserRealm.User


Field Summary
private  org.mortbay.util.Credential _cred
           
private  java.lang.String _userName
           
(package private)  java.util.List roles
           
 
Constructor Summary
(package private) HashUserRealm.KnownUser(java.lang.String name, org.mortbay.util.Credential credential)
           
 
Method Summary
(package private)  boolean authenticate(java.lang.Object credentials)
           
 java.lang.String getName()
          This method returns a String that names this Principal.
 boolean isAuthenticated()
           
 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

_userName

private java.lang.String _userName

_cred

private org.mortbay.util.Credential _cred

roles

java.util.List roles
Constructor Detail

HashUserRealm.KnownUser

HashUserRealm.KnownUser(java.lang.String name,
                        org.mortbay.util.Credential credential)
Method Detail

authenticate

boolean authenticate(java.lang.Object credentials)

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

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