Annotation of java/classes/org/w3c/jigsaw/acl/AclPrincipal.java, revision 1.3
1.1 bmahe 1: // AclPrincipal.java
1.3 ! bmahe 2: // $Id: AclPrincipal.java,v 1.2 1999/04/27 12:33:26 bmahe Exp $
1.1 bmahe 3: // (c) COPYRIGHT MIT, INRIA and Keio, 1999.
4: // Please first read the full copyright statement in file COPYRIGHT.html
5:
6: package org.w3c.jigsaw.acl;
7:
1.3 ! bmahe 8: import java.security.Principal;
1.1 bmahe 9: import java.net.InetAddress;
10:
11: /**
1.3 ! bmahe 12: * @version $Revision: 1.2 $
1.1 bmahe 13: * @author Benoît Mahé (bmahe@w3.org)
14: */
1.3 ! bmahe 15: abstract public interface AclPrincipal extends Principal {
1.1 bmahe 16:
1.3 ! bmahe 17: /**
! 18: * Get the realm associated to this principal.(could be his group)
! 19: * @return the realm name.
! 20: */
! 21: abstract public String getRealm();
! 22:
! 23: /**
! 24: * Get the password associated to this principal.
! 25: * @return the password
! 26: */
! 27: abstract public String getPassword();
! 28:
! 29: /**
! 30: * Set a parameter.
! 31: * @param name the parameter name
! 32: * @param value the parameter value
! 33: */
! 34: abstract public void setValue(String name, Object value);
! 35:
! 36: /**
! 37: * Get a parameter value.
! 38: * @param name the parameter name.
! 39: * @return the parameter value
! 40: */
! 41: abstract public Object getValue(String name);
! 42:
! 43: /**
! 44: * Return true if the IPadress associated to this principal match
! 45: * the given one.
! 46: * @param adr an IP adress
! 47: * @return true if the ip adress match.
! 48: */
! 49: abstract public boolean matchIP(InetAddress adr);
1.1 bmahe 50:
51: }
52:
Webmaster