public class TLSConfiguration
extends java.lang.Object
Constructor and Description |
---|
TLSConfiguration(long handle)
Constructor storing the pointer/address to the underlying native object
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
domain()
Gets the configured local domain name
A default TLS transport is always initialized.
|
void |
domain(java.lang.String value)
Configures the local domain name
A default TLS transport is always initialized.
|
java.lang.String |
domainCert()
Gets the configured domain certificate to be load
If not set (or set to NULL) AND domain is also not set (or set to NULL) only the default TLS transport will be
initialized.
|
void |
domainCert(java.lang.String value)
Configures the domain certificate to be load
If not set (or set to NULL) AND domain is also not set (or set to NULL) only the default TLS transport will be
initialized.
|
java.lang.String |
domainCertPassphrase()
Gets the configured domain certificate passphrase
Can optionally contain the plaintext passphrase protecting the key set with domainCert.
|
void |
domainCertPassphrase(java.lang.String value)
Configures the domain certificate passphrase
Can optionally contain the plaintext passphrase protecting the key set with domainCert.
|
protected void |
finalize()
Ensures the underlying native object destruction
|
long |
handle()
Gets the pointer/address to the underlying native object
|
TLSSecureSuiteType |
secureSuite()
Gets the configured TLS secure suite type to be used
By default it is set to TLSv1.2 (support TLSv1.2 and better/newer - TLSv1.3, etc are alsosupported!)
|
void |
secureSuite(TLSSecureSuiteType value)
Configures the TLS secure suite type to be used
By default it is set to TLSv1.2 (support TLSv1.2 and better/newer - TLSv1.3, etc are alsosupported!)
|
boolean |
tlsInitialized()
Gets whether the TLS configuration is initialized/applied
Indicates whether the configuration is applied/initialized with startContext! Any changes to the configuration
can take place only if it is not initialized.
|
void |
tlsInitialized(boolean value)
Sets whether the TLS configuration is initialized/applied
Indicates whether the configuration is applied/initialized with startContext! Any changes to the configuration
can take place only if it is not initialized.
|
boolean |
useOnlyStrongCyphers()
Gets whether to to limit the use to only of strong cypher
If enabled, will limit the ciphers to 3DES and AES (RC4 or DES will not be allowed)
|
void |
useOnlyStrongCyphers(boolean value)
Configures whether to to limit the use to only of strong cypher
If enabled, will limit the ciphers to 3DES and AES (RC4 or DES will not be allowed)
|
public TLSConfiguration(long handle)
handle
- Pointer/address to the underlying native objectpublic long handle()
protected void finalize()
finalize
in class java.lang.Object
public boolean tlsInitialized()
public void tlsInitialized(boolean value)
value
- public boolean useOnlyStrongCyphers()
public void useOnlyStrongCyphers(boolean value)
value
- public java.lang.String domain()
domainCert
public void domain(java.lang.String value)
value
- The TLS domain namedomainCert
public java.lang.String domainCert()
domain
public void domainCert(java.lang.String value)
value
- The TLS domain certificate namedomain
public java.lang.String domainCertPassphrase()
domainCert
public void domainCertPassphrase(java.lang.String value)
value
- The TLS domain certificate passphrasedomainCert
public TLSSecureSuiteType secureSuite()
TLSSecureSuiteType
public void secureSuite(TLSSecureSuiteType value)
value
- The TLS secure suite typeTLSSecureSuiteType