org.w3c.jigsaw.acl
Class BasicAuthPrincipal

java.lang.Object
  extended by org.w3c.jigsaw.acl.HTTPPrincipal
      extended by org.w3c.jigsaw.acl.BasicAuthPrincipal
All Implemented Interfaces:
java.security.Principal

public class BasicAuthPrincipal
extends HTTPPrincipal


Field Summary
protected  java.lang.String cookie
           
protected  java.lang.String name
           
protected  java.lang.String origname
           
protected  java.lang.String password
           
 
Fields inherited from class org.w3c.jigsaw.acl.HTTPPrincipal
lenient, request
 
Constructor Summary
BasicAuthPrincipal(Request request)
           
BasicAuthPrincipal(Request request, boolean lenient)
           
 
Method Summary
 boolean equals(java.lang.Object another)
           
protected  java.lang.String getCookie()
           
 java.lang.String getName()
           
 java.lang.String getOriginalName()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class org.w3c.jigsaw.acl.HTTPPrincipal
getInetAddress, getRealm, getRequest
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

origname

protected java.lang.String origname

name

protected java.lang.String name

password

protected java.lang.String password

cookie

protected java.lang.String cookie
Constructor Detail

BasicAuthPrincipal

public BasicAuthPrincipal(Request request)
                   throws InvalidAuthException
Throws:
InvalidAuthException

BasicAuthPrincipal

public BasicAuthPrincipal(Request request,
                          boolean lenient)
                   throws InvalidAuthException
Throws:
InvalidAuthException
Method Detail

getCookie

protected java.lang.String getCookie()

equals

public boolean equals(java.lang.Object another)
Specified by:
equals in interface java.security.Principal
Overrides:
equals in class HTTPPrincipal

toString

public java.lang.String toString()
Specified by:
toString in interface java.security.Principal
Overrides:
toString in class HTTPPrincipal

hashCode

public int hashCode()
Specified by:
hashCode in interface java.security.Principal
Overrides:
hashCode in class java.lang.Object

getName

public java.lang.String getName()
Specified by:
getName in interface java.security.Principal
Overrides:
getName in class HTTPPrincipal

getOriginalName

public java.lang.String getOriginalName()
Overrides:
getOriginalName in class HTTPPrincipal