|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.softwareag.tamino.db.api.common.TSSLProperties
public class TSSLProperties
Handle the SSL properties for the 2-way ssl protocol. It is constructed with property values like this:
"com.softwareag.centrasite.security.[key|trust]Store...".
If one of the custom properties is not defined then the system counterpart is investigated,
e.g. |javax.net.ssl.trustStore".
After construction, the truststore (for 1-way SSL) or truststore + keystore (for 2-way SSL) is established.
Field Summary | |
---|---|
static java.lang.String |
PROP_KEYSTORE
|
static java.lang.String |
PROP_KEYSTORE_PW
|
static java.lang.String |
PROP_KEYSTORE_TYPE
|
static java.lang.String |
PROP_TRUSTSTORE
|
static java.lang.String |
PROP_TRUSTSTORE_PW
|
static java.lang.String |
PROP_TRUSTSTORE_TYPE
|
Constructor Summary | |
---|---|
TSSLProperties()
Constructor for supporting system ssl properties (javax.net.ssl.xxx). |
|
TSSLProperties(java.util.Properties sslProperties)
Constructor for supporting custom ssl properties. |
Method Summary | |
---|---|
java.security.KeyStore |
getKeyStore()
Returns the keystore. |
java.lang.String |
getKeyStorePw()
Get the password of the keystore (not truststore). |
java.security.KeyStore |
getTrustStore()
Returns the truststore. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROP_KEYSTORE
public static final java.lang.String PROP_KEYSTORE_PW
public static final java.lang.String PROP_KEYSTORE_TYPE
public static final java.lang.String PROP_TRUSTSTORE
public static final java.lang.String PROP_TRUSTSTORE_PW
public static final java.lang.String PROP_TRUSTSTORE_TYPE
Constructor Detail |
---|
public TSSLProperties(java.util.Properties sslProperties) throws TSSLPropertiesException
sslProperties
- properties class with custom ssl properties
(null or empty: only consider system properties)
TSSLPropertiesException
- problems with the ssl propertiespublic TSSLProperties() throws TSSLPropertiesException
TSSLPropertiesException
Method Detail |
---|
public java.lang.String getKeyStorePw()
public java.security.KeyStore getKeyStore()
public java.security.KeyStore getTrustStore()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |