01: package com.sun.portal.netlet.crypt.jsse;
02:
03: import java.io.InputStream;
04:
05: public class NetletJSSEAuthContextJKSImpl implements
06: NetletJSSEAuthContext {
07: /*
08: * getKeyStoreStream Reads the keystore and returns the stream
09: * @return
10: */
11: private String keyStorePath = null;
12: private char[] password = null;
13:
14: public InputStream getKeyStoreStream() {
15: return null;
16: }
17:
18: /*
19: * getKeyStoreType Reads the keystore type and returns the type
20: * @return
21: */
22: public KeyStoreType getKeyStoreType() {
23: return KeyStoreType.JKS;
24:
25: }
26:
27: /*
28: * getKeyStorePassword Reads the keystore passphrase and returns the passphrase
29: * @return
30: */
31: public char[] getKeyStorePassword() {
32: return password;
33: }
34:
35: /*
36: * getKeyStorePath Reads the keystore file system path and returns the path
37: * @return
38: */
39: public String getKeyStorePath() {
40: return keyStorePath;
41: }
42:
43: public void setKeyStorePath(String store) {
44: keyStorePath = store;
45: }
46:
47: public void setKeyStorePassword(String passwd) {
48: password = new char[passwd.length()];
49: passwd.getChars(0, passwd.length(), password, 0);
50: }
51: }
|