|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.ssl.CredentialConfigFactory
public final class CredentialConfigFactory
Utility class for creating credential configs when the underlying credential is already available for use.
| Method Summary | |
|---|---|
static CredentialConfig |
createKeyStoreCredentialConfig(KeyStore trustStore)
Creates a KeyStoreCredentialConfig from the supplied truststore. |
static CredentialConfig |
createKeyStoreCredentialConfig(KeyStore trustStore,
KeyStore keyStore,
String keyStorePassword)
Creates a KeyStoreCredentialConfig from the supplied truststore, keystore and password. |
static CredentialConfig |
createKeyStoreCredentialConfig(KeyStore keyStore,
String keyStorePassword)
Creates a KeyStoreCredentialConfig from the supplied keystore and password. |
static CredentialConfig |
createKeyStoreCredentialConfig(KeyStore trustStore,
String[] trustStoreAliases)
Creates a KeyStoreCredentialConfig from the supplied truststore. |
static CredentialConfig |
createKeyStoreCredentialConfig(KeyStore trustStore,
String[] trustStoreAliases,
KeyStore keyStore,
String keyStorePassword,
String[] keyStoreAliases)
Creates a KeyStoreCredentialConfig from the supplied truststore, keystore and password. |
static CredentialConfig |
createKeyStoreCredentialConfig(KeyStore keyStore,
String keyStorePassword,
String[] keyStoreAliases)
Creates a KeyStoreCredentialConfig from the supplied keystore and password. |
static CredentialConfig |
createX509CredentialConfig(String trustCertificates)
Creates a X509CredentialConfig from PEM encoded certificate(s). |
static CredentialConfig |
createX509CredentialConfig(X509Certificate[] trustCertificates)
Creates a X509CredentialConfig from the supplied trust certificates. |
static CredentialConfig |
createX509CredentialConfig(X509Certificate[] trustCertificates,
X509Certificate authenticationCertificate,
PrivateKey authenticationKey)
Creates a X509CredentialConfig from the supplied trust certificates, authentication certificate and private key. |
static CredentialConfig |
createX509CredentialConfig(X509Certificate authenticationCertificate,
PrivateKey authenticationKey)
Creates a X509CredentialConfig from the supplied authentication certificate and private key. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static CredentialConfig createKeyStoreCredentialConfig(KeyStore trustStore)
trustStore - to create credential config from
public static CredentialConfig createKeyStoreCredentialConfig(KeyStore trustStore,
String[] trustStoreAliases)
trustStore - to create credential config fromtrustStoreAliases - to use in the truststore
public static CredentialConfig createKeyStoreCredentialConfig(KeyStore keyStore,
String keyStorePassword)
keyStore - to create credential config fromkeyStorePassword - to unlock the keystore
public static CredentialConfig createKeyStoreCredentialConfig(KeyStore keyStore,
String keyStorePassword,
String[] keyStoreAliases)
keyStore - to create credential config fromkeyStorePassword - to unlock the keystorekeyStoreAliases - to use in the keystore
public static CredentialConfig createKeyStoreCredentialConfig(KeyStore trustStore,
KeyStore keyStore,
String keyStorePassword)
trustStore - to create credential config fromkeyStore - to create credential config fromkeyStorePassword - to unlock the keystore
public static CredentialConfig createKeyStoreCredentialConfig(KeyStore trustStore,
String[] trustStoreAliases,
KeyStore keyStore,
String keyStorePassword,
String[] keyStoreAliases)
trustStore - to create credential config fromtrustStoreAliases - to use in the truststorekeyStore - to create credential config fromkeyStorePassword - to unlock the keystorekeyStoreAliases - to use in the keystore
public static CredentialConfig createX509CredentialConfig(X509Certificate[] trustCertificates)
trustCertificates - to create credential config from
public static CredentialConfig createX509CredentialConfig(X509Certificate authenticationCertificate,
PrivateKey authenticationKey)
authenticationCertificate - to create credential config fromauthenticationKey - that belongs to the certificate
public static CredentialConfig createX509CredentialConfig(X509Certificate[] trustCertificates,
X509Certificate authenticationCertificate,
PrivateKey authenticationKey)
trustCertificates - to create credential config fromauthenticationCertificate - to create credential config fromauthenticationKey - that belongs to the certificate
public static CredentialConfig createX509CredentialConfig(String trustCertificates)
trustCertificates - to create credential config from
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||