Package edu.uiuc.ncsa.security.util.ssl
Class SSLConfiguration
- java.lang.Object
- 
- edu.uiuc.ncsa.security.util.ssl.SSLKeystoreConfiguration
- 
- edu.uiuc.ncsa.security.util.ssl.SSLConfiguration
 
 
- 
- All Implemented Interfaces:
- Serializable
 
 public class SSLConfiguration extends SSLKeystoreConfiguration Created by Jeff Gaynor 
 on Jun 12, 2010 at 9:27:22 AM- See Also:
- Serialized Form
 
- 
- 
Field Summary- 
Fields inherited from class edu.uiuc.ncsa.security.util.ssl.SSLKeystoreConfigurationJAVA_DEFAULT_KEYSTORE_PASSWORD, JAVA_DEFAULT_KEYSTORE_PATH, JAVA_DEFAULT_KEYSTORE_TYPE, KEYSTORE_TYPE_JKS, KEYSTORE_TYPE_PKCS12
 
- 
 - 
Constructor SummaryConstructors Constructor Description SSLConfiguration()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetTlsVersion()StringgetTrustRootCertDN()This is used in the trust root manager to check against the certificate DN.StringgetTrustRootPassword()StringgetTrustrootPath()StringgetTrustRootType()booleanhasCertDN()booleanisStrictHostnames()booleanisUseDefaultTrustManager()voidsetStrictHostnames(boolean hostNameVerificationOff)voidsetTlsVersion(String tlsVersion)voidsetTrustRootCertDN(String trustRootCertDN)voidsetTrustRootPassword(String trustRootPassword)voidsetTrustRootPath(String trustRootPath)voidsetTrustRootType(String trustRootType)voidsetUseDefaultTrustManager(boolean useDefaultTrustManager)StringtoString()- 
Methods inherited from class edu.uiuc.ncsa.security.util.ssl.SSLKeystoreConfigurationgetKeyManagerFactory, getKeystore, getKeystoreBytes, getKeystoreIS, getKeystorePassword, getKeystorePasswordChars, getKeystoreType, isUseDefaultJavaTrustStore, main, setKeyManagerFactory, setKeystore, setKeystoreBytes, setKeystorePassword, setKeystoreType, setUseDefaultJavaTrustStore
 
- 
 
- 
- 
- 
Method Detail- 
setTrustRootPathpublic void setTrustRootPath(String trustRootPath) 
 - 
isStrictHostnamespublic boolean isStrictHostnames() 
 - 
setStrictHostnamespublic void setStrictHostnames(boolean hostNameVerificationOff) 
 - 
isUseDefaultTrustManagerpublic boolean isUseDefaultTrustManager() 
 - 
setUseDefaultTrustManagerpublic void setUseDefaultTrustManager(boolean useDefaultTrustManager) 
 - 
getTrustRootCertDNpublic String getTrustRootCertDN() This is used in the trust root manager to check against the certificate DN. This is useful if there are self-signed certs, since when the TrustManager invokesX509TrustManager.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.- Returns:
 
 - 
setTrustRootCertDNpublic void setTrustRootCertDN(String trustRootCertDN) 
 - 
hasCertDNpublic boolean hasCertDN() 
 - 
getTrustRootTypepublic String getTrustRootType() 
 - 
setTrustRootTypepublic void setTrustRootType(String trustRootType) 
 - 
getTrustRootPasswordpublic String getTrustRootPassword() 
 - 
setTrustRootPasswordpublic void setTrustRootPassword(String trustRootPassword) 
 - 
getTlsVersionpublic String getTlsVersion() 
 - 
setTlsVersionpublic void setTlsVersion(String tlsVersion) 
 - 
getTrustrootPathpublic String getTrustrootPath() 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- SSLKeystoreConfiguration
 
 - 
equalspublic boolean equals(Object obj) - Overrides:
- equalsin class- SSLKeystoreConfiguration
 
 
- 
 
-