public class X509CredentialConfig extends Object implements CredentialConfig
Modifier and Type | Field and Description |
---|---|
private String |
authenticationCertificate
Name of the authentication certificate to use for the SSL connection.
|
private 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 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(Object o) |
String |
getAuthenticationCertificate()
Returns the name of the authentication certificate to use.
|
String |
getAuthenticationKey()
Returns the name of the authentication key to use.
|
String |
getTrustCertificates()
Returns the name of the trust certificates to use.
|
int |
hashCode() |
void |
setAuthenticationCertificate(String name)
Sets the name of the authentication certificate to use.
|
void |
setAuthenticationKey(String name)
Sets the name of the authentication key to use.
|
void |
setTrustCertificates(String name)
Sets the name of the trust certificates to use.
|
String |
toString() |
private static final int HASH_CODE_SEED
private final X509CertificatesCredentialReader certsReader
private final X509CertificateCredentialReader certReader
private final PrivateKeyCredentialReader keyReader
private String trustCertificates
private String authenticationCertificate
private String authenticationKey
public String getTrustCertificates()
public void setTrustCertificates(String name)
name
- trust certificates namepublic String getAuthenticationCertificate()
public void setAuthenticationCertificate(String name)
name
- authentication certificate namepublic String getAuthenticationKey()
public void setAuthenticationKey(String name)
name
- authentication key namepublic SSLContextInitializer createSSLContextInitializer() throws GeneralSecurityException
CredentialConfig
createSSLContextInitializer
in interface CredentialConfig
GeneralSecurityException
- if the ssl context initializer cannot be createdCopyright © 2003-2019 Virginia Tech. All Rights Reserved.