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.
|
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.
|
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 |
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 |
setTruststoreLocation(java.lang.String truststoreLocation)
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.
|
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 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 Axual B.V.. All rights reserved.