org.w3c.jigsaw.acl
Class HTTPPrincipal

java.lang.Object
  extended by org.w3c.jigsaw.acl.HTTPPrincipal
All Implemented Interfaces:
java.security.Principal
Direct Known Subclasses:
BasicAuthPrincipal, DigestAuthPrincipal

public class HTTPPrincipal
extends java.lang.Object
implements java.security.Principal

This class implements the most basic HTTP principal, allowing you to check the IP of the request only


Field Summary
protected  boolean lenient
           
protected  Request request
           
 
Constructor Summary
HTTPPrincipal(Request request)
           
HTTPPrincipal(Request request, boolean lenient)
           
 
Method Summary
 boolean equals(java.lang.Object another)
           
protected  java.net.InetAddress getInetAddress()
           
 java.lang.String getName()
           
 java.lang.String getOriginalName()
           
 java.lang.String getRealm()
           
protected  Request getRequest()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.security.Principal
hashCode
 

Field Detail

request

protected Request request

lenient

protected boolean lenient
Constructor Detail

HTTPPrincipal

public HTTPPrincipal(Request request)

HTTPPrincipal

public HTTPPrincipal(Request request,
                     boolean lenient)
Method Detail

getRequest

protected Request getRequest()

getInetAddress

protected java.net.InetAddress getInetAddress()

equals

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

getName

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

getOriginalName

public java.lang.String getOriginalName()

getRealm

public java.lang.String getRealm()

toString

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