version 1.3, 1999/04/27 12:33:26
|
version 1.4, 1999/04/27 14:17:36
|
Line 14 import org.w3c.jigsaw.http.Request;
|
Line 14 import org.w3c.jigsaw.http.Request;
|
* @version $Revision$ |
* @version $Revision$ |
* @author Benoît Mahé (bmahe@w3.org) |
* @author Benoît Mahé (bmahe@w3.org) |
*/ |
*/ |
abstract public class HTTPPrincipal implements Principal { |
public class HTTPPrincipal implements Principal { |
|
|
protected InetAddress inetaddress = null; |
protected InetAddress inetaddress = null; |
|
|
Line 22 abstract public class HTTPPrincipal impl
|
Line 22 abstract public class HTTPPrincipal impl
|
return inetaddress; |
return inetaddress; |
} |
} |
|
|
|
public boolean equals(Object another) { |
|
return false; |
|
} |
|
|
|
public String getName() { |
|
return "httpprincipal"; |
|
} |
|
|
public String toString() { |
public String toString() { |
return inetaddress.toString(); |
return inetaddress.toString(); |
} |
} |
|
|
public HTTPPrincipal(Request request) |
public HTTPPrincipal(Request request) { |
throws InvalidAuthException |
|
{ |
|
this.inetaddress = request.getClient().getInetAddress(); |
this.inetaddress = request.getClient().getInetAddress(); |
} |
} |
|
|