Annotation of java/classes/org/w3c/jigsaw/acl/AclPrincipal.java, revision 1.4
1.1 bmahe 1: // AclPrincipal.java
1.4 ! ylafon 2: // $Id: AclPrincipal.java,v 1.3.4.1 1999/10/12 11:49:23 ylafon 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.4 ! ylafon 12: * @version $Revision: 1.3.4.1 $
1.1 bmahe 13: * @author Benoît Mahé (bmahe@w3.org)
14: */
1.4 ! ylafon 15: 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: */
1.4 ! ylafon 21: public String getRealm();
1.3 bmahe 22:
23: /**
24: * Get the password associated to this principal.
25: * @return the password
26: */
1.4 ! ylafon 27: public String getPassword();
1.3 bmahe 28:
29: /**
30: * Set a parameter.
31: * @param name the parameter name
32: * @param value the parameter value
33: */
1.4 ! ylafon 34: public void setValue(String name, Object value);
1.3 bmahe 35:
36: /**
37: * Get a parameter value.
38: * @param name the parameter name.
39: * @return the parameter value
40: */
1.4 ! ylafon 41: public Object getValue(String name);
1.3 bmahe 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: */
1.4 ! ylafon 49: public boolean matchIP(InetAddress adr);
1.1 bmahe 50:
51: }
52:
Webmaster