01: /*
02: * ClientAuthenticationMethod.java
03: *
04: * Created on January 8, 2003, 9:49 AM
05: */
06:
07: package examples.authorization;
08:
09: /**
10: * Get this interface from the nist-sip IM
11: * @author olivier deruelle
12: */
13: public interface ClientAuthenticationMethod {
14:
15: /**
16: * Initialize the Client authentication method. This has to be
17: * done outside the constructor.
18: * @throws Exception if the parameters are not correct.
19: */
20: public void initialize(String realm, String userName, String uri,
21: String nonce, String password, String method,
22: String cnonce, String algorithm) throws Exception;
23:
24: /**
25: * generate the response
26: * @returns null if the parameters given in the initialization are not
27: * correct.
28: */
29: public String generateResponse();
30:
31: }
|