public class SSLConfiguration extends SSLKeystoreConfiguration
Created by Jeff Gaynor
on Jun 12, 2010 at 9:27:22 AM
JAVA_DEFAULT_KEYSTORE_PASSWORD, JAVA_DEFAULT_KEYSTORE_PATH, JAVA_DEFAULT_KEYSTORE_TYPE, KEYSTORE_TYPE_JKS, KEYSTORE_TYPE_PKCS12
Constructor and Description |
---|
SSLConfiguration() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getTlsVersion() |
String |
getTrustRootCertDN()
This is used in the trust root manager to check against the certificate DN.
|
String |
getTrustRootPassword() |
String |
getTrustrootPath() |
String |
getTrustRootType() |
boolean |
hasCertDN() |
void |
setTlsVersion(String tlsVersion) |
void |
setTrustRootCertDN(String trustRootCertDN) |
void |
setTrustRootPassword(String trustRootPassword) |
void |
setTrustRootPath(String trustRootPath) |
void |
setTrustRootType(String trustRootType) |
String |
toString() |
getKeyManagerFactory, getKeystore, getKeystoreBytes, getKeystoreIS, getKeystorePassword, getKeystorePasswordChars, getKeystoreType, isUseDefaultJavaTrustStore, main, setKeyManagerFactory, setKeystore, setKeystoreBytes, setKeystorePassword, setKeystoreType, setUseDefaultJavaTrustStore
public void setTrustRootPath(String trustRootPath)
public String getTrustRootCertDN()
X509TrustManager.checkServerTrusted(X509Certificate[], String)
it invokes checkServerDN to verify that the name on the certificate matches the lookup. Normally you do
not have to set this BUT in cases of self-signed certs, it may need to be manually set since the lookup for the
hostname (especially localhost) might not work quite as expected without a lot of hacking of the DNS.
Most common use case is this is in the client's SSL configuration and is set to "CN=localhost" for a self-signed cert.public void setTrustRootCertDN(String trustRootCertDN)
public boolean hasCertDN()
public String getTrustRootType()
public void setTrustRootType(String trustRootType)
public String getTrustRootPassword()
public void setTrustRootPassword(String trustRootPassword)
public String getTlsVersion()
public void setTlsVersion(String tlsVersion)
public String getTrustrootPath()
public String toString()
toString
in class SSLKeystoreConfiguration
public boolean equals(Object obj)
equals
in class SSLKeystoreConfiguration
Copyright © 2019. All Rights Reserved.