public class TibjmsSSL
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
_vendors |
static java.lang.String |
AUTH_ONLY
Name of TLS property specifying if TLS is used for authentication only.
|
static java.lang.String |
CIPHER_SUITES
Name of TLS property specifying the set of cipher suites to be used
by the TLS connection.
|
static java.lang.String |
CIPHERS
Name of TLS property specifying the set of cipher suites to be used
by the TLS connection.
|
static boolean |
client_enableSSLv3
Deprecated.
As of release 8.5.1
|
static java.lang.String |
DEBUG_TRACE
Name of TLS property specifying if client debug trace is required.
|
static java.lang.String |
ENABLE_VERIFY_HOST
Name of TLS property specifying if client should verify server certificate.
|
static java.lang.String |
ENABLE_VERIFY_HOST_NAME
Name of TLS property specifying if client should verify the common name
in the server certificate.
|
static int |
ENCODING_AUTO
Integer defining AUTO format of the certificate or private key data.
|
static int |
ENCODING_DER
Integer defining DER format of the certificate or private key data.
|
static int |
ENCODING_KEYSTORE
Integer defining KeyStore format of the client identity data.
|
static int |
ENCODING_PEM
Integer defining PEM format of the certificate or private key data.
|
static int |
ENCODING_PKCS12
Integer defining PKCS12 format of the client identity data.
|
static int |
ENCODING_PKCS7
Integer defining PKCS7 format.
|
static int |
ENCODING_PKCS8
Integer defining PKCS8 format of the private key data.
|
static java.lang.String |
EXPECTED_HOST_NAME
Name of TLS property specifying the common name in the server certificate.
|
static java.lang.String |
HOST_NAME_VERIFIER
Name of TLS property specifying the custom host name verifier.
|
static java.lang.String |
IBM_PROVIDER |
static java.lang.String |
IDENTITY
Name of TLS property specifying the client-side identity.
|
static java.lang.String |
IDENTITY_ENCODING
Name of TLS property specifying the encoding of the data presented by
IDENTITY property.
|
static java.lang.String |
ISSUER_CERTIFICATES
Name of TLS property specifying the additional issuer certificates
for the client certificate.
|
static java.lang.String |
J2SE_DEFAULT |
static java.lang.String |
J2SE_PROVIDER |
static java.lang.String |
PASSWORD
Name of TLS property specifying the password for the private key
or the identity store.
|
static java.lang.String |
PRIVATE_KEY
Name of TLS property specifying the private key for the client certificate.
|
static java.lang.String |
PRIVATE_KEY_ENCODING
Name of TLS property specifying the encoding of the data presented by
PRIVATE_KEY property.
|
static int |
SSL_DHE_DSS_EXPORT_WITH_DES_40_CBC_SHA
This cipher is no longer supported.
|
static int |
SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA
Cipher Suite: SSLv3 Kx=DH Au=DSS Enc=3DES(168) Mac=SHA1
|
static int |
SSL_DHE_DSS_WITH_DES_CBC_SHA
This cipher is no longer supported.
|
static int |
SSL_DHE_RSA_EXPORT_WITH_DES_40_CBC_SHA
This cipher is no longer supported.
|
static int |
SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA
Cipher Suite: SSLv3 Kx=DH Au=RSA Enc=3DES(168) Mac=SHA1
|
static int |
SSL_DHE_RSA_WITH_DES_CBC_SHA
This cipher is no longer supported.
|
static int |
SSL_RSA_EXPORT_WITH_DES_40_CBC_SHA
This cipher is no longer supported.
|
static int |
SSL_RSA_EXPORT_WITH_RC2_CBC_40_MD5
This cipher is no longer supported.
|
static int |
SSL_RSA_EXPORT_WITH_RC4_40_MD5
This cipher is no longer supported.
|
static int |
SSL_RSA_WITH_3DES_EDE_CBC_SHA
Cipher Suite: SSLv3 Kx=RSA Au=RSA Enc=3DES(168) Mac=SHA1
|
static int |
SSL_RSA_WITH_DES_CBC_SHA
This cipher is no longer supported.
|
static int |
SSL_RSA_WITH_NULL_MD5
This cipher is no longer supported.
|
static int |
SSL_RSA_WITH_NULL_SHA
This cipher is no longer supported.
|
static int |
SSL_RSA_WITH_RC4_128_MD5
This cipher is no longer supported.
|
static int |
SSL_RSA_WITH_RC4_128_SHA
Cipher Suite: SSLv3 Kx=RSA Au=RSA Enc=RC4(128) Mac=SHA1
|
static int |
TLS_AES_128_CCM_8_SHA256
Cipher Suite: TLSv1.3 Kx=N/A Au=N/A Enc=AESCCM(128) Mac=SHA256
|
static int |
TLS_AES_128_CCM_SHA256
Cipher Suite: TLSv1.3 Kx=N/A Au=N/A Enc=AESCCM(128) Mac=SHA256
|
static int |
TLS_AES_128_GCM_SHA256
Cipher Suite: TLSv1.3 Kx=N/A Au=N/A Enc=AESGCM(128) Mac=SHA256
|
static int |
TLS_AES_256_GCM_SHA384
Cipher Suite: TLSv1.3 Kx=N/A Au=N/A Enc=AESGCM(256) Mac=SHA384
|
static int |
TLS_CHACHA20_POLY1305_SHA256
Cipher Suite: TLSv1.3 Kx=N/A Au=N/A Enc=CHACHA20/POLY1305 Mac=SHA256
|
static int |
TLS_DHE_DSS_WITH_AES_128_CBC_SHA
Cipher Suite: SSLv3 Kx=DH Au=DSS Enc=AES(128) Mac=SHA1
|
static int |
TLS_DHE_DSS_WITH_AES_128_CBC_SHA256
Cipher Suite: TLSv1.2 Kx=DH Au=DSS Enc=AES(128) Mac=SHA256
|
static int |
TLS_DHE_DSS_WITH_AES_128_GCM_SHA256
Cipher Suite: TLSv1.2 Kx=DH Au=DSS Enc=AESGCM(128) Mac=AEAD
|
static int |
TLS_DHE_DSS_WITH_AES_256_CBC_SHA
Cipher Suite: SSLv3 Kx=DH Au=DSS Enc=AES(256) Mac=SHA1
|
static int |
TLS_DHE_DSS_WITH_AES_256_CBC_SHA256
Cipher Suite: TLSv1.2 Kx=DH Au=DSS Enc=AES(256) Mac=SHA256
|
static int |
TLS_DHE_DSS_WITH_AES_256_GCM_SHA384
Cipher Suite: TLSv1.2 Kx=DH Au=DSS Enc=AESGCM(256) Mac=AEAD
|
static int |
TLS_DHE_PSK_WITH_AES_128_GCM_SHA256
Cipher Suite: TLSv1.2 Kx=DHEPSK Au=PSK Enc=AESGCM(128) Mac=AEAD
|
static int |
TLS_DHE_PSK_WITH_AES_256_GCM_SHA384
Cipher Suite: TLSv1.2 Kx=DHEPSK Au=PSK Enc=AESGCM(256) Mac=AEAD
|
static int |
TLS_DHE_PSK_WITH_CHACHA20_POLY1305_SHA256
Cipher Suite: TLSv1.2 Kx=DHEPSK Au=PSK Enc=CHACHA20/POLY1305(256) Mac=AEAD
|
static int |
TLS_DHE_RSA_WITH_AES_128_CBC_SHA
Cipher Suite: SSLv3 Kx=DH Au=RSA Enc=AES(128) Mac=SHA1
|
static int |
TLS_DHE_RSA_WITH_AES_128_CBC_SHA256
Cipher Suite: TLSv1.2 Kx=DH Au=RSA Enc=AES(128) Mac=SHA256
|
static int |
TLS_DHE_RSA_WITH_AES_128_GCM_SHA256
Cipher Suite: TLSv1.2 Kx=DH Au=RSA Enc=AESGCM(128) Mac=AEAD
|
static int |
TLS_DHE_RSA_WITH_AES_256_CBC_SHA
Cipher Suite: SSLv3 Kx=DH Au=RSA Enc=AES(256) Mac=SHA1
|
static int |
TLS_DHE_RSA_WITH_AES_256_CBC_SHA256
Cipher Suite: TLSv1.2 Kx=DH Au=RSA Enc=AES(256) Mac=SHA256
|
static int |
TLS_DHE_RSA_WITH_AES_256_GCM_SHA384
Cipher Suite: TLSv1.2 Kx=DH Au=RSA Enc=AESGCM(256) Mac=AEAD
|
static int |
TLS_DHE_RSA_WITH_CHACHA20_POLY1305_SHA256
Cipher Suite: TLSv1.2 Kx=DH Au=RSA Enc=CHACHA20/POLY1305(256) Mac=AEAD
|
static int |
TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA
Cipher Suite: SSLv3 Kx=ECDH Au=ECDSA Enc=3DES(168) Mac=SHA1
|
static int |
TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA
Cipher Suite: SSLv3 Kx=ECDH Au=ECDSA Enc=AES(128) Mac=SHA1
|
static int |
TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256
Cipher Suite: TLSv1.2 Kx=ECDH Au=ECDSA Enc=AES(128) Mac=SHA256
|
static int |
TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
Cipher Suite: TLSv1.2 Kx=ECDH Au=ECDSA Enc=AESGCM(128) Mac=AEAD
|
static int |
TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA
Cipher Suite: SSLv3 Kx=ECDH Au=ECDSA Enc=AES(256) Mac=SHA1
|
static int |
TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384
Cipher Suite: TLSv1.2 Kx=ECDH Au=ECDSA Enc=AES(256) Mac=SHA384
|
static int |
TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
Cipher Suite: TLSv1.2 Kx=ECDH Au=ECDSA Enc=AESGCM(256) Mac=AEAD
|
static int |
TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256
Cipher Suite: TLSv1.2 Kx=ECDH Au=ECDSA Enc=CHACHA20/POLY1305(256) Mac=AEAD
|
static int |
TLS_ECDHE_ECDSA_WITH_RC4_128_SHA
Cipher Suite: SSLv3 Kx=ECDH Au=ECDSA Enc=RC4(128) Mac=SHA1
|
static int |
TLS_ECDHE_PSK_WITH_CHACHA20_POLY1305_SHA256
Cipher Suite: TLSv1.2 Kx=ECDHEPSK Au=PSK Enc=CHACHA20/POLY1305(256) Mac=AEAD
|
static int |
TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA
Cipher Suite: SSLv3 Kx=ECDH Au=RSA Enc=3DES(168) Mac=SHA1
|
static int |
TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
Cipher Suite: SSLv3 Kx=ECDH Au=RSA Enc=AES(128) Mac=SHA1
|
static int |
TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256
Cipher Suite: TLSv1.2 Kx=ECDH Au=RSA Enc=AES(128) Mac=SHA256
|
static int |
TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
Cipher Suite: TLSv1.2 Kx=ECDH Au=RSA Enc=AESGCM(128) Mac=AEAD
|
static int |
TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA
Cipher Suite: SSLv3 Kx=ECDH Au=RSA Enc=AES(256) Mac=SHA1
|
static int |
TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384
Cipher Suite: TLSv1.2 Kx=ECDH Au=RSA Enc=AES(256) Mac=SHA384
|
static int |
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
Cipher Suite: TLSv1.2 Kx=ECDH Au=RSA Enc=AESGCM(256) Mac=AEAD
|
static int |
TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256
Cipher Suite: TLSv1.2 Kx=ECDH Au=RSA Enc=CHACHA20/POLY1305(256) Mac=AEAD
|
static int |
TLS_ECDHE_RSA_WITH_RC4_128_SHA
Cipher Suite: SSLv3 Kx=ECDH Au=RSA Enc=RC4(128) Mac=SHA1
|
static int |
TLS_PSK_WITH_AES_128_GCM_SHA256
Cipher Suite: TLSv1.2 Kx=PSK Au=PSK Enc=AESGCM(128) Mac=AEAD
|
static int |
TLS_PSK_WITH_AES_256_GCM_SHA384
Cipher Suite: TLSv1.2 Kx=PSK Au=PSK Enc=AESGCM(256) Mac=AEAD
|
static int |
TLS_PSK_WITH_CHACHA20_POLY1305_SHA256
Cipher Suite: TLSv1.2 Kx=PSK Au=PSK Enc=CHACHA20/POLY1305(256) Mac=AEAD
|
static int |
TLS_RSA_PSK_WITH_AES_128_GCM_SHA256
Cipher Suite: TLSv1.2 Kx=RSAPSK Au=RSA Enc=AESGCM(128) Mac=AEAD
|
static int |
TLS_RSA_PSK_WITH_AES_256_GCM_SHA384
Cipher Suite: TLSv1.2 Kx=RSAPSK Au=RSA Enc=AESGCM(256) Mac=AEAD
|
static int |
TLS_RSA_PSK_WITH_CHACHA20_POLY1305_SHA256
Cipher Suite: TLSv1.2 Kx=RSAPSK Au=RSA Enc=CHACHA20/POLY1305(256) Mac=AEAD
|
static int |
TLS_RSA_WITH_AES_128_CBC_SHA
Cipher Suite: SSLv3 Kx=RSA Au=RSA Enc=AES(128) Mac=SHA1
|
static int |
TLS_RSA_WITH_AES_128_CBC_SHA256
Cipher Suite: TLSv1.2 Kx=RSA Au=RSA Enc=AES(128) Mac=SHA256
|
static int |
TLS_RSA_WITH_AES_128_GCM_SHA256
Cipher Suite: TLSv1.2 Kx=RSA Au=RSA Enc=AESGCM(128) Mac=AEAD
|
static int |
TLS_RSA_WITH_AES_256_CBC_SHA
Cipher Suite: SSLv3 Kx=RSA Au=RSA Enc=AES(256) Mac=SHA1
|
static int |
TLS_RSA_WITH_AES_256_CBC_SHA256
Cipher Suite: TLSv1.2 Kx=RSA Au=RSA Enc=AES(256) Mac=SHA256
|
static int |
TLS_RSA_WITH_AES_256_GCM_SHA384
Cipher Suite: TLSv1.2 Kx=RSA Au=RSA Enc=AESGCM(256) Mac=AEAD
|
static java.lang.String |
TRACE
Name of TLS property specifying if client trace is required.
|
static java.lang.String |
TRUSTED_CERTIFICATES
Name of TLS property specifying the set of trusted certificates.
|
static java.lang.String |
VENDOR
Name of TLS property specifying the TLS vendor to be used.
|
Constructor and Description |
---|
TibjmsSSL() |
Modifier and Type | Method and Description |
---|---|
static void |
addIssuerCerts(java.lang.Object cert)
Adds one or more issuer certificates
to the set of issuer certificates.
|
static void |
addIssuerCerts(java.lang.Object cert,
int encoding)
Adds one or more issuer certificates in the specified format
to the set of issuer certificates.
|
static void |
addTrustedCerts(java.lang.Object cert)
Adds one or more trusted certificates to the set of trusted certificates.
|
static void |
addTrustedCerts(java.lang.Object cert,
int encoding)
Adds one or more trusted certificates in the specified format
to the set of trusted certificates.
|
static void |
clearIssuerCerts()
Removes all previously set issuer certificates.
|
static void |
clearTrustedCerts()
Removes all previously set trusted certificates.
|
static java.lang.String |
getCipherSuiteName(int cipherSuite)
Returns the name of cipher suite with specified number.
|
static int |
getCipherSuiteNumber(java.lang.String cipherSuite)
Returns the integer value of cipher suite with specified name.
|
static java.lang.String[] |
getClientCipherSuites() |
static java.io.PrintStream |
getClientTracer()
Returns client tracer or null if client tracing is disabled.
|
static boolean |
getDebugTraceEnabled()
Returns if debug tracing is enabled.
|
static java.lang.String |
getExpectedHostName()
Returns the name set as the expected name in the host certificate.
|
static TibjmsSSLHostNameVerifier |
getHostNameVerifier()
Returns currently set custom host name verifier.
|
static java.lang.String[] |
getSupportedCipherNames() |
static int[] |
getSupportedCipherSuites()
Returns all supported cipher suites.
|
static java.lang.String |
getVendor()
Returns a String with the name of currently used TLS vendor.
|
static boolean |
getVerifyHost()
Returns if the host certificate verification is enabled.
|
static boolean |
getVerifyHostName()
Returns if the verification of the host certificate name is enabled.
|
static void |
initialize()
Initializes TLS environment.
|
static void |
initialize(java.lang.String vendorName)
Initializes TLS environment with specified TLS vendor.
|
static boolean |
isAuthOnly()
Returns true if TLS is used only during connection authentication,
returns false otherwise.
|
static boolean |
isCipherSuiteSupported(int cipherSuite)
Returns true if the specified cipher suite is supported.
|
static boolean |
isCipherSuiteSupported(java.lang.String cipherSuite)
Returns true if the specified cipher suite is supported.
|
static void |
setAuthOnly(boolean b)
Set client connections to use TLS only during initial connection
authentication.
|
static void |
setCipherSuites(int[] cipherSuites)
Set cipher suites to be used by TLS connections.
|
static void |
setCipherSuites(java.lang.String cipherSuites)
Set cipher suites as a String specification.
|
static void |
setClientTracer(java.io.PrintStream tracer)
Set client tracer to given output stream.
|
static void |
setDebugTraceEnabled(boolean enabled)
Enables additional debug tracing.
|
static void |
setExpectedHostName(java.lang.String hostname)
Set the name which is expected to be set in the host certificate.
|
static void |
setHostNameVerifier(TibjmsSSLHostNameVerifier verifier)
Set the custom host name verifier.
|
static void |
setIdentity(java.lang.Object identity,
char[] password)
Set client identity object and password.
|
static void |
setIdentity(java.lang.Object identity,
int encoding,
char[] password)
Set client identity object in the specified format and password.
|
static void |
setIdentity(java.lang.Object identity,
int encoding,
java.lang.Object key,
char[] password)
Set client identity object in the specified format, private key
and password.
|
static void |
setIdentity(java.lang.Object identity,
int identityEncoding,
java.lang.Object key,
int keyEncoding,
char[] password)
Set client identity object in the specified format, private key
in the specified format and password.
|
static void |
setIdentity(java.lang.Object identity,
java.lang.Object key,
char[] password)
Set client identity, private key and password.
|
static void |
setPassword(char[] password)
Sets private key password.
|
static void |
setSecureRandom(java.security.SecureRandom secureRandom)
Set a java.Security.SecureRandom object.
|
static void |
setVendor(java.lang.String vendorName)
Set TLS vendor to the specified vendor.
|
static void |
setVerifyHost(boolean enable)
Set if the host certificate should be verified by the client.
|
static void |
setVerifyHostName(boolean enable)
Set if the name in the host certificate should be verified or not.
|
public static final int TLS_RSA_WITH_AES_128_CBC_SHA256
public static final int TLS_RSA_WITH_AES_256_CBC_SHA256
public static final int TLS_DHE_RSA_WITH_AES_128_CBC_SHA256
public static final int TLS_DHE_RSA_WITH_AES_256_CBC_SHA256
public static final int TLS_RSA_WITH_AES_128_GCM_SHA256
public static final int TLS_RSA_WITH_AES_256_GCM_SHA384
public static final int TLS_DHE_RSA_WITH_AES_128_GCM_SHA256
public static final int TLS_DHE_RSA_WITH_AES_256_GCM_SHA384
public static final int TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256
public static final int TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384
public static final int TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256
public static final int TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384
public static final int TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
public static final int TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
public static final int TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
public static final int TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
public static final int TLS_PSK_WITH_AES_128_GCM_SHA256
public static final int TLS_PSK_WITH_AES_256_GCM_SHA384
public static final int TLS_DHE_PSK_WITH_AES_128_GCM_SHA256
public static final int TLS_DHE_PSK_WITH_AES_256_GCM_SHA384
public static final int TLS_RSA_PSK_WITH_AES_128_GCM_SHA256
public static final int TLS_RSA_PSK_WITH_AES_256_GCM_SHA384
public static final int TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256
public static final int TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256
public static final int TLS_DHE_RSA_WITH_CHACHA20_POLY1305_SHA256
public static final int TLS_PSK_WITH_CHACHA20_POLY1305_SHA256
public static final int TLS_ECDHE_PSK_WITH_CHACHA20_POLY1305_SHA256
public static final int TLS_DHE_PSK_WITH_CHACHA20_POLY1305_SHA256
public static final int TLS_RSA_PSK_WITH_CHACHA20_POLY1305_SHA256
public static final int TLS_AES_128_GCM_SHA256
public static final int TLS_AES_256_GCM_SHA384
public static final int TLS_CHACHA20_POLY1305_SHA256
public static final int TLS_AES_128_CCM_SHA256
public static final int TLS_AES_128_CCM_8_SHA256
public static final int SSL_RSA_WITH_RC4_128_MD5
public static final int SSL_RSA_EXPORT_WITH_RC2_CBC_40_MD5
public static final int SSL_RSA_EXPORT_WITH_RC4_40_MD5
public static final int SSL_RSA_EXPORT_WITH_DES_40_CBC_SHA
public static final int SSL_DHE_RSA_EXPORT_WITH_DES_40_CBC_SHA
public static final int SSL_DHE_DSS_EXPORT_WITH_DES_40_CBC_SHA
public static final int SSL_RSA_WITH_NULL_MD5
public static final int SSL_RSA_WITH_NULL_SHA
public static final int SSL_RSA_WITH_DES_CBC_SHA
public static final int SSL_DHE_DSS_WITH_DES_CBC_SHA
public static final int SSL_DHE_RSA_WITH_DES_CBC_SHA
public static final int SSL_RSA_WITH_RC4_128_SHA
public static final int SSL_RSA_WITH_3DES_EDE_CBC_SHA
public static final int SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA
public static final int SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA
public static final int TLS_RSA_WITH_AES_128_CBC_SHA
public static final int TLS_RSA_WITH_AES_256_CBC_SHA
public static final int TLS_DHE_DSS_WITH_AES_128_CBC_SHA
public static final int TLS_DHE_DSS_WITH_AES_256_CBC_SHA
public static final int TLS_DHE_RSA_WITH_AES_128_CBC_SHA
public static final int TLS_DHE_RSA_WITH_AES_256_CBC_SHA
public static final int TLS_DHE_DSS_WITH_AES_128_CBC_SHA256
public static final int TLS_DHE_DSS_WITH_AES_256_CBC_SHA256
public static final int TLS_DHE_DSS_WITH_AES_128_GCM_SHA256
public static final int TLS_DHE_DSS_WITH_AES_256_GCM_SHA384
public static final int TLS_ECDHE_ECDSA_WITH_RC4_128_SHA
public static final int TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA
public static final int TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA
public static final int TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA
public static final int TLS_ECDHE_RSA_WITH_RC4_128_SHA
public static final int TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA
public static final int TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
public static final int TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA
public static final java.lang.String J2SE_DEFAULT
public static final java.lang.String J2SE_PROVIDER
public static final java.lang.String IBM_PROVIDER
public static java.lang.String[] _vendors
@Deprecated public static final boolean client_enableSSLv3
public static final java.lang.String VENDOR
public static final java.lang.String TRACE
public static final java.lang.String AUTH_ONLY
public static final java.lang.String DEBUG_TRACE
public static final java.lang.String TRUSTED_CERTIFICATES
public static final java.lang.String ENABLE_VERIFY_HOST
public static final java.lang.String ENABLE_VERIFY_HOST_NAME
public static final java.lang.String EXPECTED_HOST_NAME
public static final java.lang.String HOST_NAME_VERIFIER
public static final java.lang.String IDENTITY
public static final java.lang.String IDENTITY_ENCODING
public static final java.lang.String ISSUER_CERTIFICATES
public static final java.lang.String PRIVATE_KEY
public static final java.lang.String PRIVATE_KEY_ENCODING
public static final java.lang.String PASSWORD
public static final java.lang.String CIPHER_SUITES
public static final java.lang.String CIPHERS
public static final int ENCODING_AUTO
public static final int ENCODING_PEM
public static final int ENCODING_DER
public static final int ENCODING_PKCS7
public static final int ENCODING_PKCS8
public static final int ENCODING_PKCS12
public static final int ENCODING_KEYSTORE
public static java.lang.String getVendor()
public static void setVendor(java.lang.String vendorName) throws JMSSecurityException
JMSSecurityException
- if specified vendor is not supported.public static void initialize() throws JMSSecurityException
JMSSecurityException
- if method fails due to
some error.public static void initialize(java.lang.String vendorName) throws JMSSecurityException
JMSSecurityException
- if specified vendor is not
supported or if method fails due to some error.public static void setDebugTraceEnabled(boolean enabled)
public static void setAuthOnly(boolean b)
true
then connections use TLS only
for authentication and switch to TCP protocol for all subsequent
messaging. If parameter is false
then TLS is used
for the lifetime of the connection, which is the default mode.
Connections use this setting at the time they are created.
Changing this setting only affects connection created after
the change. By default this parameter is disabled.b
- - true to only use TLS for authentication, false to use TLS
for the lifetime of the connections.public static boolean isAuthOnly()
public static boolean getDebugTraceEnabled()
public static void setClientTracer(java.io.PrintStream tracer)
public static java.io.PrintStream getClientTracer()
public static void setSecureRandom(java.security.SecureRandom secureRandom)
public static java.lang.String getCipherSuiteName(int cipherSuite) throws JMSSecurityException
JMSSecurityException
- if cipherSuite parameter does
not specify a valid cipher suite number.public static int getCipherSuiteNumber(java.lang.String cipherSuite) throws JMSSecurityException
JMSSecurityException
- if cipherSuite parameter does
not specify a supported cipher suite name.public static boolean isCipherSuiteSupported(int cipherSuite) throws JMSSecurityException
JMSSecurityException
- if cipherSuite parameter does
not specify a supported cipher suite number.public static boolean isCipherSuiteSupported(java.lang.String cipherSuite) throws JMSSecurityException
JMSSecurityException
- if cipherSuite parameter does
not specify a supported cipher suite name.public static int[] getSupportedCipherSuites() throws JMSSecurityException
JMSSecurityException
- if method fails due to some error.public static java.lang.String[] getSupportedCipherNames() throws JMSSecurityException
JMSSecurityException
public static void setCipherSuites(int[] cipherSuites) throws JMSSecurityException
JMSSecurityException
- if method fails due to some error.public static void setCipherSuites(java.lang.String cipherSuites) throws JMSSecurityException
JMSSecurityException
- if method fails due to some error.public static java.lang.String[] getClientCipherSuites() throws JMSException
JMSException
public static void setVerifyHost(boolean enable)
public static boolean getVerifyHost()
public static void setExpectedHostName(java.lang.String hostname)
public static java.lang.String getExpectedHostName()
public static void setVerifyHostName(boolean enable)
public static boolean getVerifyHostName()
public static void setHostNameVerifier(TibjmsSSLHostNameVerifier verifier)
public static TibjmsSSLHostNameVerifier getHostNameVerifier()
public static void clearTrustedCerts() throws JMSSecurityException
JMSSecurityException
public static void addTrustedCerts(java.lang.Object cert) throws JMSSecurityException
JMSSecurityException
- if certificate data is not valid
or if method fails due to some error.public static void addTrustedCerts(java.lang.Object cert, int encoding) throws JMSSecurityException
JMSSecurityException
- if certificate data is not valid
or if method fails due to some error.public static void clearIssuerCerts() throws JMSSecurityException
JMSSecurityException
public static void addIssuerCerts(java.lang.Object cert) throws JMSSecurityException
JMSSecurityException
- if certificate data is not valid
or if method fails due to some error.public static void addIssuerCerts(java.lang.Object cert, int encoding) throws JMSSecurityException
JMSSecurityException
- if certificate data is not valid
or if method fails due to some error.public static void setIdentity(java.lang.Object identity, char[] password) throws JMSSecurityException
JMSSecurityException
- if identity data is not valid
or if method fails due to some error.public static void setIdentity(java.lang.Object identity, java.lang.Object key, char[] password) throws JMSSecurityException
JMSSecurityException
- if identity or private key
data is not valid
or if method fails due to some error.public static void setIdentity(java.lang.Object identity, int encoding, char[] password) throws JMSSecurityException
JMSSecurityException
- if identity data is not valid
or if method fails due to some error.public static void setIdentity(java.lang.Object identity, int encoding, java.lang.Object key, char[] password) throws JMSSecurityException
JMSSecurityException
- if identity or private key data
is not valid or if method fails due to some error.public static void setIdentity(java.lang.Object identity, int identityEncoding, java.lang.Object key, int keyEncoding, char[] password) throws JMSSecurityException
JMSSecurityException
- if identity or private key data
is not valid or if method fails due to some error.public static void setPassword(char[] password)
Copyright © Cloud Software Group, Inc. All rights reserved