|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Dictionary<K,V>
java.util.Hashtable<java.lang.Object,java.lang.Object>
java.util.Properties
com.ibm.websphere.ssl.SSLConfig
public class SSLConfig
SSLConfig is responsible for maintaining all of the properties for an individual SSL configuration that can be used to create an SSLContext.
This class represents a single SSLConfig in the runtime. It uses an underlying Properties object to hold the data.
Constructor Summary | |
---|---|
SSLConfig()
Constructor. |
|
SSLConfig(java.util.Properties props)
Constructor. |
|
SSLConfig(java.lang.String configURL)
Constructor. |
Method Summary | |
---|---|
void |
decodePasswords()
This method attempts to decode the values of any property that contains "password" in any case. |
boolean |
equals(java.lang.Object config)
This method determines if the current instance of SSLConfig equals the one passed into the equals method. |
java.lang.String |
getDynamicSelectionProperty()
This method returns the com.ibm.ssl.dynamicSelectionInfo property value. |
SSLConfig[] |
loadPropertiesFile(java.lang.String propertiesURL,
boolean multiConfigURL)
Load ConfigURL from a url string that names a properties file. |
boolean |
requiredPropertiesArePresent()
This ensures there is at least a keystore, truststore or crypto configured. |
java.lang.Object |
setProperty(java.lang.String name,
java.lang.String value,
boolean processEscapeSequences)
Set the given name/value pair as a property. |
java.lang.String |
toString()
This method prints the SSL properties to trace without printing passwords. |
void |
validateSSLConfig()
This method attempts to validate a set of SSL configuration properties by trying to create an SSLContext from them. |
static java.lang.String |
validateURL(java.lang.String propertiesURL)
This method tries to normalize the ConfigURL value in an attempt to correct any URL parsing errors. |
Methods inherited from class java.util.Properties |
---|
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames |
Methods inherited from class java.util.Hashtable |
---|
clear, clone, contains, containsKey, containsValue, elements, entrySet, get, hashCode, isEmpty, keys, keySet, put, putAll, remove, size, values |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SSLConfig()
public SSLConfig(java.util.Properties props)
props
- public SSLConfig(java.lang.String configURL)
configURL
- Method Detail |
---|
public void validateSSLConfig() throws java.lang.Exception
java.lang.Exception
public boolean requiredPropertiesArePresent()
public java.lang.String toString()
toString
in class java.util.Hashtable<java.lang.Object,java.lang.Object>
Object.toString()
public SSLConfig[] loadPropertiesFile(java.lang.String propertiesURL, boolean multiConfigURL)
propertiesURL
- - the properties file to load the SSL propertiesmultiConfigURL
-
public void decodePasswords()
public static java.lang.String validateURL(java.lang.String propertiesURL)
propertiesURL
-
public java.lang.String getDynamicSelectionProperty()
public boolean equals(java.lang.Object config)
equals
in interface java.util.Map<java.lang.Object,java.lang.Object>
equals
in class java.util.Hashtable<java.lang.Object,java.lang.Object>
config
-
public java.lang.Object setProperty(java.lang.String name, java.lang.String value, boolean processEscapeSequences)
name
- value
- processEscapeSequences
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |