com.novell.nds.dirxml.driver.ssl
Class KeyStoreSSLFactory
java.lang.Object
com.novell.nds.dirxml.driver.ssl.SSLFactory
com.novell.nds.dirxml.driver.ssl.KeyStoreSSLFactory
public abstract class KeyStoreSSLFactory
- extends SSLFactory
Extension of SSLFactory describing a factory that will produce SSL-capable sockets
based on key/certificates in a keystore.
Method Summary |
abstract void |
setKey(String keyAlias,
char[] keyPassword)
Set the key/certificate to use for the SSL sockets producted by this factory. |
abstract void |
setKeyStore(String keyStoreName,
char[] keyStorePassword)
Set the keystore to use for the SSL sockets producted by this factory. |
Methods inherited from class com.novell.nds.dirxml.driver.ssl.SSLFactory |
createServerSocket, createServerSocket, createServerSocket, createSocket, createSocket, createSocket, createSocket, getInstance, getSSLDescription, getSSLVerboseDescription, setNeedClientAuth, setUseClientMode |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyStoreSSLFactory
public KeyStoreSSLFactory()
setKeyStore
public abstract void setKeyStore(String keyStoreName,
char[] keyStorePassword)
throws SSLInitializationException
- Set the keystore to use for the SSL sockets producted by this factory.
This must be called before a socket is created.
- Parameters:
keyStoreName
- Name of the keystore file.keyStorePassword
- Password for access to keystore
- Throws:
SSLInitializationException
setKey
public abstract void setKey(String keyAlias,
char[] keyPassword)
throws SSLInitializationException
- Set the key/certificate to use for the SSL sockets producted by this factory.
This must be called before a socket is create that requires a certificate
(in other words, a socket that will perform either client auth or the server
handshake).
This must be called after setKeystore()
is called.
- Parameters:
keyAlias
- Name of the key/certificate in the keystore.keyPassword
- Password of the key
- Throws:
SSLInitializationException