package com.sun.portal.netlet.crypt.jsse;
import java.io.InputStream;
public class NetletJSSEAuthContexPKCSImpl implements NetletJSSEAuthContext {
/*
* getKeyStoreStream Reads the keystore and returns the stream
* @return
*/
private String keyStorePath = null;
private char[] password = null;
public InputStream getKeyStoreStream(){
return null;
}
/*
* getKeyStoreType Reads the keystore type and returns the type
* @return
*/
public KeyStoreType getKeyStoreType(){
return KeyStoreType.PKCS12;
}
/*
* getKeyStorePassword Reads the keystore passphrase and returns the passphrase
* @return
*/
public char[] getKeyStorePassword(){
return password;
}
/*
* setKeyStorePath Reads the keystore file system path and returns the path
* @return
*/
public void setKeyStorePath(String store){
keyStorePath = store;
}
public void setKeyStorePassword(String passwd){
password = new char[passwd.length()];
passwd.getChars(0,passwd.length(),password,0);
}
/*
* getKeyStorePath Reads the keystore file system path and returns the path
* @return
*/
public String getKeyStorePath(){
return keyStorePath;
}
}
|