com.endeca.portal.data
Class SSLConfig
java.lang.Object
com.endeca.portal.data.SSLConfig
- All Implemented Interfaces:
- java.io.Serializable
public class SSLConfig
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
Constructor Summary |
SSLConfig(org.json.JSONObject json)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CA_FILE_PROPERTY
public static final java.lang.String CA_FILE_PROPERTY
- See Also:
- Constant Field Values
CA_PASS_PROPERTY
public static final java.lang.String CA_PASS_PROPERTY
- See Also:
- Constant Field Values
CERT_FILE_PROPERTY
public static final java.lang.String CERT_FILE_PROPERTY
- See Also:
- Constant Field Values
CERT_PASS_PROPERTY
public static final java.lang.String CERT_PASS_PROPERTY
- See Also:
- Constant Field Values
PASSWORD_DISPLAY
public static final java.lang.String PASSWORD_DISPLAY
- String which may be used to represent/display a password in masked-form.
- See Also:
- Constant Field Values
SSLConfig
public SSLConfig(org.json.JSONObject json)
throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
getCAFile
public java.io.File getCAFile()
setCAFile
public void setCAFile(java.io.File caFile)
getCAPassword
public java.lang.String getCAPassword()
getCAPlaintextPassword
public java.lang.String getCAPlaintextPassword()
- Keystore passwords are stored in this class in encrypted form. This method decrypts the ciphertext password
and returns the plaintext password.
- Returns:
- plaintext CA keystore password
setCAPassword
public void setCAPassword(java.lang.String caPassword)
getCertFile
public java.io.File getCertFile()
setCertFile
public void setCertFile(java.io.File certFile)
getCertPassword
public java.lang.String getCertPassword()
getCertPlaintextPassword
public java.lang.String getCertPlaintextPassword()
- Keystore passwords are stored in this class in encrypted form. This method decrypts the ciphertext password
and returns the plaintext password.
- Returns:
- plaintext Certificate keystore password
setCertPassword
public void setCertPassword(java.lang.String certPassword)
getTLSParameters
public org.apache.cxf.configuration.jsse.TLSClientParameters getTLSParameters()
throws DataSourceException
- Throws:
DataSourceException
verifySSLHostname
public static boolean verifySSLHostname(java.lang.String urlHostname,
javax.net.ssl.SSLSession sslSession)