01: package com.sun.portal.proxylet.crypt.jsse;
02:
03: import java.io.InputStream;
04:
05: /**
06: * $name com.sun.portal.netlet.crypt.jsse.NetletJSSEAuthContext
07: * $description This interface will be implemented by application
08: * that needs a callback to set the keystore path
09: * and password.
10: *
11: * This is required because the password & path SHOULD be
12: * prompted only if client authentication is turned
13: * ON at the gateway. Therefore, the callback functions
14: * will be invoked from within the SSL client handshake
15: * routine. The only way we could detect if client
16: * authentication is enabled or not is when JSSE
17: * invokes chooseClientAlias of X509KeyManager.
18: *
19: * Currently, only JKS or PKCS12 are supported.
20: *
21: * The password and path information will be prompted only
22: * once.
23: *
24: */
25:
26: public interface NetletJSSEAuthContext {
27: /**
28: * OnsetKeyStoreStream Reads the keystore and returns the stream
29: * @return
30: */
31: public InputStream OnsetKeyStoreStream();
32:
33: /**
34: * OnsetKeyStoreType Reads the keystore type and returns the type
35: * @return
36: */
37: public KeyStoreType OnsetKeyStoreType();
38:
39: /**
40: * OnsetKeyStorePassword Reads the keystore passphrase and returns the passphrase
41: * @return
42: */
43: public char[] OnsetKeyStorePassword();
44:
45: /**
46: * OnsetKeyStorePath Reads the keystore file system path and returns the path
47: * @return
48: */
49: public String OnsetKeyStorePath();
50:
51: }
|