public class X509CredentialConfig extends Object implements CredentialConfig
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() |
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 © 2017. All rights reserved.