public final class CredentialConfigFactory extends Object
| Modifier | Constructor and Description |
|---|---|
private |
CredentialConfigFactory()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static CredentialConfig createKeyStoreCredentialConfig(KeyStore trustStore)
trustStore - to create credential config frompublic static CredentialConfig createKeyStoreCredentialConfig(KeyStore trustStore, String[] trustStoreAliases)
trustStore - to create credential config fromtrustStoreAliases - to use in the truststorepublic static CredentialConfig createKeyStoreCredentialConfig(KeyStore keyStore, String keyStorePassword)
keyStore - to create credential config fromkeyStorePassword - to unlock the keystorepublic static CredentialConfig createKeyStoreCredentialConfig(KeyStore keyStore, String keyStorePassword, String[] keyStoreAliases)
keyStore - to create credential config fromkeyStorePassword - to unlock the keystorekeyStoreAliases - to use in the keystorepublic static CredentialConfig createKeyStoreCredentialConfig(KeyStore trustStore, KeyStore keyStore, String keyStorePassword)
trustStore - to create credential config fromkeyStore - to create credential config fromkeyStorePassword - to unlock the keystorepublic 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 keystorepublic static CredentialConfig createX509CredentialConfig(X509Certificate[] trustCertificates)
trustCertificates - to create credential config frompublic static CredentialConfig createX509CredentialConfig(X509Certificate authenticationCertificate, PrivateKey authenticationKey)
authenticationCertificate - to create credential config fromauthenticationKey - that belongs to the certificatepublic static CredentialConfig createX509CredentialConfig(X509Certificate[] trustCertificates, X509Certificate authenticationCertificate, PrivateKey authenticationKey)
trustCertificates - to create credential config fromauthenticationCertificate - to create credential config fromauthenticationKey - that belongs to the certificatepublic static CredentialConfig createX509CredentialConfig(String trustCertificates)
trustCertificates - to create credential config fromCopyright © 2003-2019 Virginia Tech. All Rights Reserved.