public class TSSLProperties
extends java.lang.Object
After construction, the truststore (for 1-way SSL) or truststore + keystore (for 2-way SSL) is established.
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
TSSLProperties()
Constructor for supporting system ssl properties (javax.net.ssl.xxx).
|
TSSLProperties(java.util.Properties sslProperties)
Constructor for supporting custom ssl properties.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
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
public java.lang.String getKeyStorePw()
public java.security.KeyStore getKeyStore()
public java.security.KeyStore getTrustStore()
Copyright (c) 2017 Software AG. All Rights Reserved.