File:  [Public] / java / classes / org / w3c / jigsaw / acl / HTTPPrincipal.java
Revision 1.3: download - view: text, annotated - select for diffs
Tue Apr 27 12:33:26 1999 UTC (25 years, 1 month ago) by bmahe
Branches: MAIN
CVS tags: HEAD
Digest auth finished, not tested

// 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