Package edu.uiuc.ncsa.security.util.ssl
Class SSLConfigurationUtil
- java.lang.Object
- 
- edu.uiuc.ncsa.security.util.ssl.SSLConfigurationUtil
 
- 
- All Implemented Interfaces:
- Serializable
 
 public class SSLConfigurationUtil extends Object implements Serializable A utility to create an SSLConfiguration from a configuration node. This is included here since it is used in various places in the code base.Created by Jeff Gaynor 
 on 3/21/14 at 3:53 PM- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringSSL_DEBUG_TAGstatic StringSSL_KEYSTORE_FACTORYstatic StringSSL_KEYSTORE_PASSWORDstatic StringSSL_KEYSTORE_PATHstatic StringSSL_KEYSTORE_TAGstatic StringSSL_KEYSTORE_TYPEstatic StringSSL_TAGstatic StringSSL_TLS_VERSION_TAGstatic StringSSL_TRUSTSTORE_CERTIFICATE_DNstatic StringSSL_TRUSTSTORE_IS_STRICT_HOSTNAMESstatic StringSSL_TRUSTSTORE_PASSWORDstatic StringSSL_TRUSTSTORE_PATHstatic StringSSL_TRUSTSTORE_TAGstatic StringSSL_TRUSTSTORE_TYPEstatic StringSSL_TRUSTSTORE_USE_DEFAULT_TRUST_MANAGERstatic StringSSL_TRUSTSTORE_USE_JAVA_TRUSTSTOREstatic StringSSL_TRUSTSTORE_USE_JAVA_TRUSTSTORE_OLDstatic StringTLS_1_0static StringTLS_1_1static StringTLS_1_2static StringTLS_DEFAULTThe strings that are used in Java are standardized and listed here.static StringTLS_VERSION_1_0static StringTLS_VERSION_1_1static StringTLS_VERSION_1_2
 - 
Constructor SummaryConstructors Constructor Description SSLConfigurationUtil()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected static SSLConfigurationgetNEWSSLConfiguration(MyLoggingFacade logger, CFNode node)protected static SSLConfigurationgetNEWSSLConfiguration(MyLoggingFacade logger, org.apache.commons.configuration.tree.ConfigurationNode node)The new way of doing it from an SSL node in the configuration file.protected static SSLConfigurationgetOLDSSLConfiguration(MyLoggingFacade logger, org.apache.commons.configuration.tree.ConfigurationNode node)Deprecated.static SSLConfigurationgetSSLConfiguration(MyLoggingFacade logger, CFNode node)UsesCFNodeand n longer supported ancient and deprecated old SSL keystore configuration.static SSLConfigurationgetSSLConfiguration(MyLoggingFacade logger, org.apache.commons.configuration.tree.ConfigurationNode node)
 
- 
- 
- 
Field Detail- 
SSL_KEYSTORE_TAGpublic static final String SSL_KEYSTORE_TAG - See Also:
- Constant Field Values
 
 - 
SSL_TAGpublic static final String SSL_TAG - See Also:
- Constant Field Values
 
 - 
SSL_DEBUG_TAGpublic static final String SSL_DEBUG_TAG - See Also:
- Constant Field Values
 
 - 
SSL_TLS_VERSION_TAGpublic static final String SSL_TLS_VERSION_TAG - See Also:
- Constant Field Values
 
 - 
SSL_KEYSTORE_PATHpublic static final String SSL_KEYSTORE_PATH - See Also:
- Constant Field Values
 
 - 
SSL_KEYSTORE_PASSWORDpublic static final String SSL_KEYSTORE_PASSWORD - See Also:
- Constant Field Values
 
 - 
SSL_KEYSTORE_TYPEpublic static final String SSL_KEYSTORE_TYPE - See Also:
- Constant Field Values
 
 - 
SSL_KEYSTORE_FACTORYpublic static final String SSL_KEYSTORE_FACTORY - See Also:
- Constant Field Values
 
 - 
SSL_TRUSTSTORE_USE_JAVA_TRUSTSTOREpublic static final String SSL_TRUSTSTORE_USE_JAVA_TRUSTSTORE - See Also:
- Constant Field Values
 
 - 
SSL_TRUSTSTORE_USE_JAVA_TRUSTSTORE_OLDpublic static final String SSL_TRUSTSTORE_USE_JAVA_TRUSTSTORE_OLD - See Also:
- Constant Field Values
 
 - 
SSL_TRUSTSTORE_IS_STRICT_HOSTNAMESpublic static final String SSL_TRUSTSTORE_IS_STRICT_HOSTNAMES - See Also:
- Constant Field Values
 
 - 
SSL_TRUSTSTORE_USE_DEFAULT_TRUST_MANAGERpublic static final String SSL_TRUSTSTORE_USE_DEFAULT_TRUST_MANAGER - See Also:
- Constant Field Values
 
 - 
SSL_TRUSTSTORE_TAGpublic static final String SSL_TRUSTSTORE_TAG - See Also:
- Constant Field Values
 
 - 
SSL_TRUSTSTORE_PATHpublic static final String SSL_TRUSTSTORE_PATH - See Also:
- Constant Field Values
 
 - 
SSL_TRUSTSTORE_PASSWORDpublic static final String SSL_TRUSTSTORE_PASSWORD - See Also:
- Constant Field Values
 
 - 
SSL_TRUSTSTORE_TYPEpublic static final String SSL_TRUSTSTORE_TYPE - See Also:
- Constant Field Values
 
 - 
SSL_TRUSTSTORE_CERTIFICATE_DNpublic static final String SSL_TRUSTSTORE_CERTIFICATE_DN - See Also:
- Constant Field Values
 
 - 
TLS_VERSION_1_0public static final String TLS_VERSION_1_0 - See Also:
- Constant Field Values
 
 - 
TLS_VERSION_1_1public static final String TLS_VERSION_1_1 - See Also:
- Constant Field Values
 
 - 
TLS_VERSION_1_2public static final String TLS_VERSION_1_2 - See Also:
- Constant Field Values
 
 - 
TLS_DEFAULTpublic static final String TLS_DEFAULT The strings that are used in Java are standardized and listed here. The values in the configuration file are made to be more easily understood.- See Also:
- Constant Field Values
 
 - 
TLS_1_0public static final String TLS_1_0 - See Also:
- Constant Field Values
 
 - 
TLS_1_1public static final String TLS_1_1 - See Also:
- Constant Field Values
 
 - 
TLS_1_2public static final String TLS_1_2 - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getOLDSSLConfigurationprotected static SSLConfiguration getOLDSSLConfiguration(MyLoggingFacade logger, org.apache.commons.configuration.tree.ConfigurationNode node) Deprecated.The old way of doing this. The node is called keystore and values are attributes.- Parameters:
- logger-
- node-
- Returns:
 
 - 
getNEWSSLConfigurationprotected static SSLConfiguration getNEWSSLConfiguration(MyLoggingFacade logger, org.apache.commons.configuration.tree.ConfigurationNode node) The new way of doing it from an SSL node in the configuration file. All values are values of the node rather than as attributes, mostly because string passwords can be put into CDATA elements.- Parameters:
- logger-
- node-
- Returns:
 
 - 
getNEWSSLConfigurationprotected static SSLConfiguration getNEWSSLConfiguration(MyLoggingFacade logger, CFNode node) 
 - 
getSSLConfigurationpublic static SSLConfiguration getSSLConfiguration(MyLoggingFacade logger, org.apache.commons.configuration.tree.ConfigurationNode node) 
 - 
getSSLConfigurationpublic static SSLConfiguration getSSLConfiguration(MyLoggingFacade logger, CFNode node) UsesCFNodeand n longer supported ancient and deprecated old SSL keystore configuration. If one is found, this method throws an exception.- Parameters:
- logger-
- node-
- Returns:
 
 
- 
 
-