// HTTPPrincipal.java
// $Id: HTTPPrincipal.java,v 1.3 1999/04/27 12:33:26 bmahe Exp $
// (c) COPYRIGHT MIT, INRIA and Keio, 1999.
// Please first read the full copyright statement in file COPYRIGHT.html
package org.w3c.jigsaw.acl;
import java.net.InetAddress;
import java.security.Principal;
import org.w3c.jigsaw.http.Request;
/**
* @version $Revision: 1.3 $
* @author Benoît Mahé (bmahe@w3.org)
*/
abstract public class HTTPPrincipal implements Principal {
protected InetAddress inetaddress = null;
protected InetAddress getInetAddress() {
return inetaddress;
}
public String toString() {
return inetaddress.toString();
}
public HTTPPrincipal(Request request)
throws InvalidAuthException
{
this.inetaddress = request.getClient().getInetAddress();
}
}
Webmaster