01: package com.sun.portal.netlet.crypt.jsse;
02:
03: import java.io.InputStream;
04:
05: public class NetletJSSEAuthContexPKCSImpl 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:
23: public KeyStoreType getKeyStoreType() {
24: return KeyStoreType.PKCS12;
25: }
26:
27: /*
28: * getKeyStorePassword Reads the keystore passphrase and returns the passphrase
29: * @return
30: */
31:
32: public char[] getKeyStorePassword() {
33: return password;
34: }
35:
36: /*
37: * setKeyStorePath Reads the keystore file system path and returns the path
38: * @return
39: */
40: public void setKeyStorePath(String store) {
41: keyStorePath = store;
42: }
43:
44: public void setKeyStorePassword(String passwd) {
45: password = new char[passwd.length()];
46: passwd.getChars(0, passwd.length(), password, 0);
47: }
48:
49: /*
50: * getKeyStorePath Reads the keystore file system path and returns the path
51: * @return
52: */
53: public String getKeyStorePath() {
54: return keyStorePath;
55: }
56:
57: }
|