public class SslEngineConfigurationBuilder extends java.lang.Object implements SslConfigurationChildBuilder
| Modifier and Type | Method and Description |
|---|---|
SslEngineConfiguration |
create()
Create the configuration bean
|
SslEngineConfigurationBuilder |
keyAlias(java.lang.String keyAlias)
Selects a specific key to choose from the keystore
|
SslEngineConfigurationBuilder |
keyStoreCertificatePassword(char[] keyStoreCertificatePassword)
Specifies the password needed to access private key associated with certificate stored in specified
keyStoreFileName(String). |
SslEngineConfigurationBuilder |
keyStoreFileName(java.lang.String keyStoreFileName)
Specifies the filename of a keystore to use to create the
SSLContext You also need to
specify a keyStorePassword(char[]). |
SslEngineConfigurationBuilder |
keyStorePassword(char[] keyStorePassword)
Specifies the password needed to open the keystore You also need to specify a
keyStoreFileName(String). |
SslEngineConfigurationBuilder |
keyStoreType(java.lang.String keyStoreType)
Specifies the type of the keystore, such as JKS or JCEKS.
|
SslEngineConfigurationBuilder |
protocol(java.lang.String protocol)
Configures the secure socket protocol.
|
SslEngineConfigurationBuilder |
read(SslEngineConfiguration template)
Reads the configuration from an already created configuration bean into this builder.
|
SslEngineConfigurationBuilder |
sniHostName(java.lang.String domain) |
SslEngineConfigurationBuilder |
sslContext(javax.net.ssl.SSLContext sslContext)
Sets the
SSLContext to use for setting up SSL connections. |
SslEngineConfigurationBuilder |
trustStoreFileName(java.lang.String trustStoreFileName)
Specifies the filename of a truststore to use to create the
SSLContext You also need
to specify a trustStorePassword(char[]). |
SslEngineConfigurationBuilder |
trustStorePassword(char[] trustStorePassword)
Specifies the password needed to open the truststore You also need to specify a
trustStoreFileName(String). |
SslEngineConfigurationBuilder |
trustStoreType(java.lang.String trustStoreType)
Specifies the type of the truststore, such as JKS or JCEKS.
|
void |
validate()
Validate the data in this builder before building the configuration bean
|
public SslEngineConfigurationBuilder sslContext(javax.net.ssl.SSLContext sslContext)
SSLContext to use for setting up SSL connections.public SslEngineConfigurationBuilder keyStoreFileName(java.lang.String keyStoreFileName)
SSLContext You also need to
specify a keyStorePassword(char[]). Alternatively specify an initialized sslContext(SSLContext).public SslEngineConfigurationBuilder keyStoreType(java.lang.String keyStoreType)
public SslEngineConfigurationBuilder keyStorePassword(char[] keyStorePassword)
keyStoreFileName(String). Alternatively specify an initialized sslContext(SSLContext).public SslEngineConfigurationBuilder trustStoreFileName(java.lang.String trustStoreFileName)
SSLContext You also need
to specify a trustStorePassword(char[]). Alternatively specify an initialized sslContext(SSLContext).public SslEngineConfigurationBuilder trustStoreType(java.lang.String trustStoreType)
public SslEngineConfigurationBuilder trustStorePassword(char[] trustStorePassword)
trustStoreFileName(String). Alternatively specify an initialized sslContext(SSLContext).public SslEngineConfigurationBuilder keyStoreCertificatePassword(char[] keyStoreCertificatePassword)
keyStoreFileName(String). If password is not specified, the password provided in
keyStorePassword(char[]) will be used.public SslEngineConfigurationBuilder keyAlias(java.lang.String keyAlias)
public SslEngineConfigurationBuilder protocol(java.lang.String protocol)
protocol - The standard name of the requested protocol, e.g TLSv1.2SSLContext.getInstance(String)public void validate()
Buildervalidate in interface Builder<SslEngineConfiguration>public SslEngineConfiguration create()
Buildercreate in interface Builder<SslEngineConfiguration>public SslEngineConfigurationBuilder read(SslEngineConfiguration template)
Builderread in interface Builder<SslEngineConfiguration>template - the configuration from which to "clone" this config if needed.public SslEngineConfigurationBuilder sniHostName(java.lang.String domain)
sniHostName in interface SslConfigurationChildBuilder