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 Summary
Fields Modifier and Type Field Description static String
SSL_DEBUG_TAG
static String
SSL_KEYSTORE_FACTORY
static String
SSL_KEYSTORE_PASSWORD
static String
SSL_KEYSTORE_PATH
static String
SSL_KEYSTORE_TAG
static String
SSL_KEYSTORE_TYPE
static String
SSL_TAG
static String
SSL_TLS_VERSION_TAG
static String
SSL_TRUSTSTORE_CERTIFICATE_DN
static String
SSL_TRUSTSTORE_IS_STRICT_HOSTNAMES
static String
SSL_TRUSTSTORE_PASSWORD
static String
SSL_TRUSTSTORE_PATH
static String
SSL_TRUSTSTORE_TAG
static String
SSL_TRUSTSTORE_TYPE
static String
SSL_TRUSTSTORE_USE_DEFAULT_TRUST_MANAGER
static String
SSL_TRUSTSTORE_USE_JAVA_TRUSTSTORE
static String
SSL_TRUSTSTORE_USE_JAVA_TRUSTSTORE_OLD
static String
TLS_1_0
static String
TLS_1_1
static String
TLS_1_2
static String
TLS_DEFAULT
The strings that are used in Java are standardized and listed here.static String
TLS_VERSION_1_0
static String
TLS_VERSION_1_1
static String
TLS_VERSION_1_2
-
Constructor Summary
Constructors Constructor Description SSLConfigurationUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected 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.protected static SSLConfiguration
getOLDSSLConfiguration(MyLoggingFacade logger, org.apache.commons.configuration.tree.ConfigurationNode node)
Deprecated.static SSLConfiguration
getSSLConfiguration(MyLoggingFacade logger, org.apache.commons.configuration.tree.ConfigurationNode node)
-
-
-
Field Detail
-
SSL_KEYSTORE_TAG
public static final String SSL_KEYSTORE_TAG
- See Also:
- Constant Field Values
-
SSL_TAG
public static final String SSL_TAG
- See Also:
- Constant Field Values
-
SSL_DEBUG_TAG
public static final String SSL_DEBUG_TAG
- See Also:
- Constant Field Values
-
SSL_TLS_VERSION_TAG
public static final String SSL_TLS_VERSION_TAG
- See Also:
- Constant Field Values
-
SSL_KEYSTORE_PATH
public static final String SSL_KEYSTORE_PATH
- See Also:
- Constant Field Values
-
SSL_KEYSTORE_PASSWORD
public static final String SSL_KEYSTORE_PASSWORD
- See Also:
- Constant Field Values
-
SSL_KEYSTORE_TYPE
public static final String SSL_KEYSTORE_TYPE
- See Also:
- Constant Field Values
-
SSL_KEYSTORE_FACTORY
public static final String SSL_KEYSTORE_FACTORY
- See Also:
- Constant Field Values
-
SSL_TRUSTSTORE_USE_JAVA_TRUSTSTORE
public static final String SSL_TRUSTSTORE_USE_JAVA_TRUSTSTORE
- See Also:
- Constant Field Values
-
SSL_TRUSTSTORE_USE_JAVA_TRUSTSTORE_OLD
public static final String SSL_TRUSTSTORE_USE_JAVA_TRUSTSTORE_OLD
- See Also:
- Constant Field Values
-
SSL_TRUSTSTORE_IS_STRICT_HOSTNAMES
public static final String SSL_TRUSTSTORE_IS_STRICT_HOSTNAMES
- See Also:
- Constant Field Values
-
SSL_TRUSTSTORE_USE_DEFAULT_TRUST_MANAGER
public static final String SSL_TRUSTSTORE_USE_DEFAULT_TRUST_MANAGER
- See Also:
- Constant Field Values
-
SSL_TRUSTSTORE_TAG
public static final String SSL_TRUSTSTORE_TAG
- See Also:
- Constant Field Values
-
SSL_TRUSTSTORE_PATH
public static final String SSL_TRUSTSTORE_PATH
- See Also:
- Constant Field Values
-
SSL_TRUSTSTORE_PASSWORD
public static final String SSL_TRUSTSTORE_PASSWORD
- See Also:
- Constant Field Values
-
SSL_TRUSTSTORE_TYPE
public static final String SSL_TRUSTSTORE_TYPE
- See Also:
- Constant Field Values
-
SSL_TRUSTSTORE_CERTIFICATE_DN
public static final String SSL_TRUSTSTORE_CERTIFICATE_DN
- See Also:
- Constant Field Values
-
TLS_VERSION_1_0
public static final String TLS_VERSION_1_0
- See Also:
- Constant Field Values
-
TLS_VERSION_1_1
public static final String TLS_VERSION_1_1
- See Also:
- Constant Field Values
-
TLS_VERSION_1_2
public static final String TLS_VERSION_1_2
- See Also:
- Constant Field Values
-
TLS_DEFAULT
public 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_0
public static final String TLS_1_0
- See Also:
- Constant Field Values
-
TLS_1_1
public static final String TLS_1_1
- See Also:
- Constant Field Values
-
TLS_1_2
public static final String TLS_1_2
- See Also:
- Constant Field Values
-
-
Method Detail
-
getOLDSSLConfiguration
protected 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:
-
getNEWSSLConfiguration
protected 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:
-
getSSLConfiguration
public static SSLConfiguration getSSLConfiguration(MyLoggingFacade logger, org.apache.commons.configuration.tree.ConfigurationNode node)
-
-