| java.lang.Object org.apache.servicemix.jbi.security.keystore.impl.BaseKeystoreManager
Method Summary | |
public SSLSocketFactory | createSSLFactory(String provider, String protocol, String algorithm, String keyStore, String keyAlias, String trustStore) Gets a SocketFactory using one Keystore to access the private key and
another to provide the list of trusted certificate authorities.
Parameters: provider - The SSL provider to use, or null for the default Parameters: protocol - The SSL protocol to use Parameters: algorithm - The SSL algorithm to use Parameters: keyStore - The key keystore name as provided by listKeystores. | public SSLServerSocketFactory | createSSLServerFactory(String provider, String protocol, String algorithm, String keyStore, String keyAlias, String trustStore) Gets a ServerSocketFactory using one Keystore to access the private key
and another to provide the list of trusted certificate authorities.
Parameters: provider - The SSL provider to use, or null for the default Parameters: protocol - The SSL protocol to use Parameters: algorithm - The SSL algorithm to use Parameters: keyStore - The key keystore name as provided by listKeystores. | public KeystoreInstance | getKeystore(String name) | public KeystoreInstance[] | getKeystores() | public void | setKeystores(KeystoreInstance[] keystores) |
log | final protected Log log(Code) | | |
createSSLFactory | public SSLSocketFactory createSSLFactory(String provider, String protocol, String algorithm, String keyStore, String keyAlias, String trustStore) throws GeneralSecurityException(Code) | | Gets a SocketFactory using one Keystore to access the private key and
another to provide the list of trusted certificate authorities.
Parameters: provider - The SSL provider to use, or null for the default Parameters: protocol - The SSL protocol to use Parameters: algorithm - The SSL algorithm to use Parameters: keyStore - The key keystore name as provided by listKeystores. TheKeystoreInstance for this keystore must be unlocked. Parameters: keyAlias - The name of the private key in the keystore. TheKeystoreInstance for this keystore must have unlocked thiskey. Parameters: trustStore - The trust keystore name as provided by listKeystores. TheKeystoreInstance for this keystore must have unlocked thiskey. Parameters: loader - The class loader used to resolve factory classes. A created SSLSocketFactory item created from the KeystoreManager. throws: GeneralSecurityException - throws: KeystoreIsLocked - Occurs when the requested key keystore cannot be used becauseit has not been unlocked. throws: KeyIsLocked - Occurs when the requested private key in the key keystorecannot be used because it has not been unlocked. throws: NoSuchAlgorithmException - throws: UnrecoverableKeyException - throws: KeyStoreException - throws: KeyManagementException - throws: NoSuchProviderException - |
createSSLServerFactory | public SSLServerSocketFactory createSSLServerFactory(String provider, String protocol, String algorithm, String keyStore, String keyAlias, String trustStore) throws GeneralSecurityException(Code) | | Gets a ServerSocketFactory using one Keystore to access the private key
and another to provide the list of trusted certificate authorities.
Parameters: provider - The SSL provider to use, or null for the default Parameters: protocol - The SSL protocol to use Parameters: algorithm - The SSL algorithm to use Parameters: keyStore - The key keystore name as provided by listKeystores. TheKeystoreInstance for this keystore must be unlocked. Parameters: keyAlias - The name of the private key in the keystore. TheKeystoreInstance for this keystore must have unlocked thiskey. Parameters: trustStore - The trust keystore name as provided by listKeystores. TheKeystoreInstance for this keystore must have unlocked thiskey. Parameters: loader - The class loader used to resolve factory classes. throws: KeystoreIsLocked - Occurs when the requested key keystore cannot be used becauseit has not been unlocked. throws: KeyIsLocked - Occurs when the requested private key in the key keystorecannot be used because it has not been unlocked. |
setKeystores | public void setKeystores(KeystoreInstance[] keystores)(Code) | | Parameters: keystores - the keystores to set |
|
|