public static class SslConfig.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
SslConfig |
build()
Builds and returns an SslConfig.
|
boolean |
getEnableHostnameVerification()
Check whether hostname verification is enabled.
|
boolean |
getEnableValidateTruststore()
Checks whether the validation of expired or not yet valid certification is enabled.
|
PasswordConfig |
getKeyPassword()
Gets the password to access the private key in the keystore.
|
PasswordConfig |
getKeystoreCertificateChain()
Gets the keystore certificates in PEM format.
|
PasswordConfig |
getKeystoreKey()
Gets the keystore certificates in form of PEM.
|
java.lang.String |
getKeystoreLocation()
Gets the keystore location, being either a path name to a locally stored keystore, or a
location to a resource bundled in the application's binary.
|
PasswordConfig |
getKeystorePassword()
Gets the password to access the truststore.
|
SslConfig.KeystoreType |
getKeystoreType() |
java.lang.String |
getSslProtocol()
Gets SSL protocol.
|
PasswordConfig |
getTruststoreCertificates()
Gets the truststore certificates in PEM format.
|
java.lang.String |
getTruststoreLocation()
Gets the truststore location, being either a path name to a locally stored truststore, or a
location to a resource bundled in the application's binary.
|
PasswordConfig |
getTruststorePassword()
Gets truststore password.
|
SslConfig.TruststoreType |
getTruststoreType() |
SslConfig.Builder |
setEnableHostnameVerification(boolean enableHostnameVerification)
Sets enable hostname verification.
|
SslConfig.Builder |
setEnableValidateTruststore(boolean enableValidateTruststore)
Sets enable validate truststore.
|
SslConfig.Builder |
setKeyPassword(PasswordConfig keyPassword)
Sets the password to access the private key in the keystore.
|
SslConfig.Builder |
setKeyPassword(java.lang.String keyPassword)
Sets the password to access the private key in the keystore.
|
SslConfig.Builder |
setKeystoreCertificateChain(PasswordConfig keystoreCertificateChain)
Sets the keystore cert chain.
|
SslConfig.Builder |
setKeystoreCertificateChain(java.lang.String keystoreCertificateChain)
Sets the keystore cert chain.
|
SslConfig.Builder |
setKeystoreKey(PasswordConfig keystoreKey)
Sets the private key in the format specified by 'ssl.keystore.type'.
|
SslConfig.Builder |
setKeystoreKey(java.lang.String keystoreKey)
Sets the private key in the format specified by 'ssl.keystore.type'.
|
SslConfig.Builder |
setKeystoreLocation(java.lang.String keystoreLocation)
Sets keystore location.
|
SslConfig.Builder |
setKeystorePassword(PasswordConfig keystorePassword)
Sets password to access the keystore.
|
SslConfig.Builder |
setKeystorePassword(java.lang.String keystorePassword)
Sets password to access the keystore.
|
SslConfig.Builder |
setKeystoreType(SslConfig.KeystoreType keystoreType)
Sets the keystore type format
|
SslConfig.Builder |
setSslProtocol(java.lang.String sslProtocol)
Sets configured SSL protocol.
|
SslConfig.Builder |
setTruststoreCertificates(PasswordConfig truststoreCertificates)
Sets the truststore location, being either a path name to a locally stored truststore, or a
location to a resource bundled in the application's binary.
|
SslConfig.Builder |
setTruststoreCertificates(java.lang.String truststoreCertificates)
Sets the truststore location, being either a path name to a locally stored truststore, or a
location to a resource bundled in the application's binary.
|
SslConfig.Builder |
setTruststoreLocation(java.lang.String truststoreLocation)
Sets the truststore location, being either a path name to a locally stored truststore, or a
location to a resource bundled in the application's binary.
|
SslConfig.Builder |
setTruststorePassword(PasswordConfig truststorePassword)
Sets truststore password.
|
SslConfig.Builder |
setTruststorePassword(java.lang.String truststorePassword)
Sets truststore password.
|
SslConfig.Builder |
setTruststoreType(SslConfig.TruststoreType truststoreType)
Sets truststore type format
|
public SslConfig.Builder setKeystoreType(SslConfig.KeystoreType keystoreType)
keystoreType - public SslConfig.KeystoreType getKeystoreType()
public SslConfig.Builder setTruststoreType(SslConfig.TruststoreType truststoreType)
truststoreType - public SslConfig.TruststoreType getTruststoreType()
public PasswordConfig getKeyPassword()
public SslConfig.Builder setKeyPassword(PasswordConfig keyPassword)
keyPassword - the key passwordpublic SslConfig.Builder setKeyPassword(java.lang.String keyPassword)
keyPassword - the key passwordpublic java.lang.String getKeystoreLocation()
public SslConfig.Builder setKeystoreLocation(java.lang.String keystoreLocation)
keystoreLocation - the keystore locationpublic PasswordConfig getKeystorePassword()
public SslConfig.Builder setKeystorePassword(PasswordConfig keystorePassword)
keystorePassword - the keystore passwordpublic SslConfig.Builder setKeystorePassword(java.lang.String keystorePassword)
keystorePassword - the keystore passwordpublic java.lang.String getTruststoreLocation()
public SslConfig.Builder setTruststoreLocation(java.lang.String truststoreLocation)
truststoreLocation - the truststore locationpublic PasswordConfig getTruststoreCertificates()
public SslConfig.Builder setTruststoreCertificates(java.lang.String truststoreCertificates)
truststoreCertificates - the truststore certificate pempublic SslConfig.Builder setTruststoreCertificates(PasswordConfig truststoreCertificates)
truststoreCertificates - the truststore certificate pempublic PasswordConfig getKeystoreCertificateChain()
public SslConfig.Builder setKeystoreCertificateChain(java.lang.String keystoreCertificateChain)
keystoreCertificateChain - Certificate chain in the format specified by
'ssl.keystore.type'. Default SSL engine factory supports only
PEM format with a list of X.509 certificates.public SslConfig.Builder setKeystoreCertificateChain(PasswordConfig keystoreCertificateChain)
keystoreCertificateChain - Certificate chain in the format specified by
'ssl.keystore.type'. Default SSL engine factory supports only
PEM format with a list of X.509 certificates.public PasswordConfig getKeystoreKey()
public SslConfig.Builder setKeystoreKey(PasswordConfig keystoreKey)
keystoreKey - the keystore certificate pempublic SslConfig.Builder setKeystoreKey(java.lang.String keystoreKey)
keystoreKey - the keystore certificate pempublic PasswordConfig getTruststorePassword()
public SslConfig.Builder setTruststorePassword(PasswordConfig truststorePassword)
truststorePassword - the truststore passwordpublic SslConfig.Builder setTruststorePassword(java.lang.String truststorePassword)
truststorePassword - the truststore passwordpublic java.lang.String getSslProtocol()
public SslConfig.Builder setSslProtocol(java.lang.String sslProtocol)
sslProtocol - the protocols by the client application's JVM.public boolean getEnableHostnameVerification()
public SslConfig.Builder setEnableHostnameVerification(boolean enableHostnameVerification)
enableHostnameVerification - the enable hostname verificationpublic boolean getEnableValidateTruststore()
public SslConfig.Builder setEnableValidateTruststore(boolean enableValidateTruststore)
enableValidateTruststore - enables truststore validation at startuppublic SslConfig build()
Copyright © 2020–2022 Axual B.V.. All rights reserved.