public class X509CredentialConfig extends java.lang.Object implements CredentialConfig
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
authenticationCertificate
Name of the authentication certificate to use for the SSL connection.
|
private java.lang.String |
authenticationKey
Name of the key to use for the SSL connection.
|
private X509CertificateCredentialReader |
certReader
Reads X.509 certificate credential.
|
private X509CertificatesCredentialReader |
certsReader
Reads X.509 certificates credential.
|
private static int |
HASH_CODE_SEED
hash code seed.
|
private PrivateKeyCredentialReader |
keyReader
Reads private key credential.
|
private java.lang.String |
trustCertificates
Name of the trust certificates to use for the SSL connection.
|
| Constructor and Description |
|---|
X509CredentialConfig() |
| Modifier and Type | Method and Description |
|---|---|
SSLContextInitializer |
createSSLContextInitializer()
Creates an SSL context initializer using the configured trust and authentication material in this config.
|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getAuthenticationCertificate()
Returns the name of the authentication certificate to use.
|
java.lang.String |
getAuthenticationKey()
Returns the name of the authentication key to use.
|
java.lang.String |
getTrustCertificates()
Returns the name of the trust certificates to use.
|
int |
hashCode() |
void |
setAuthenticationCertificate(java.lang.String name)
Sets the name of the authentication certificate to use.
|
void |
setAuthenticationKey(java.lang.String name)
Sets the name of the authentication key to use.
|
void |
setTrustCertificates(java.lang.String name)
Sets the name of the trust certificates to use.
|
java.lang.String |
toString() |
private static final int HASH_CODE_SEED
private final X509CertificatesCredentialReader certsReader
private final X509CertificateCredentialReader certReader
private final PrivateKeyCredentialReader keyReader
private java.lang.String trustCertificates
private java.lang.String authenticationCertificate
private java.lang.String authenticationKey
public java.lang.String getTrustCertificates()
public void setTrustCertificates(java.lang.String name)
name - trust certificates namepublic java.lang.String getAuthenticationCertificate()
public void setAuthenticationCertificate(java.lang.String name)
name - authentication certificate namepublic java.lang.String getAuthenticationKey()
public void setAuthenticationKey(java.lang.String name)
name - authentication key namepublic SSLContextInitializer createSSLContextInitializer() throws java.security.GeneralSecurityException
CredentialConfigcreateSSLContextInitializer in interface CredentialConfigjava.security.GeneralSecurityException - if the ssl context initializer cannot be createdpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object