org.w3c.jigsaw.acl
Class HTTPPrincipal
java.lang.Object
|
+--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
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.security.Principal |
hashCode |
request
protected Request request
HTTPPrincipal
public HTTPPrincipal(Request request)
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
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