// HTTPPrincipal.java // $Id: HTTPPrincipal.java,v 1.4 1999/04/27 14:17:36 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.4 $ * @author Benoît Mahé (bmahe@w3.org) */ public class HTTPPrincipal implements Principal { protected InetAddress inetaddress = null; protected InetAddress getInetAddress() { return inetaddress; } public boolean equals(Object another) { return false; } public String getName() { return "httpprincipal"; } public String toString() { return inetaddress.toString(); } public HTTPPrincipal(Request request) { this.inetaddress = request.getClient().getInetAddress(); } }