public class SslEngineConfigurationBuilder extends Object implements SslConfigurationChildBuilder
Modifier and Type | Method and Description |
---|---|
SslEngineConfiguration |
create()
Create the configuration bean
|
SslEngineConfigurationBuilder |
keyAlias(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(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(String keyStoreType)
Specifies the type of the keystore, such as JKS or JCEKS.
|
SslEngineConfigurationBuilder |
protocol(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(String domain) |
SslEngineConfigurationBuilder |
sslContext(SSLContext sslContext)
Sets the
SSLContext to use for setting up SSL connections. |
SslEngineConfigurationBuilder |
trustStoreFileName(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(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(SSLContext sslContext)
SSLContext
to use for setting up SSL connections.public SslEngineConfigurationBuilder keyStoreFileName(String keyStoreFileName)
SSLContext
You also need to
specify a keyStorePassword(char[])
. Alternatively specify an initialized sslContext(SSLContext)
.public SslEngineConfigurationBuilder keyStoreType(String keyStoreType)
public SslEngineConfigurationBuilder keyStorePassword(char[] keyStorePassword)
keyStoreFileName(String)
. Alternatively specify an initialized sslContext(SSLContext)
.public SslEngineConfigurationBuilder trustStoreFileName(String trustStoreFileName)
SSLContext
You also need
to specify a trustStorePassword(char[])
. Alternatively specify an initialized sslContext(SSLContext)
.public SslEngineConfigurationBuilder trustStoreType(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(String keyAlias)
public SslEngineConfigurationBuilder protocol(String protocol)
protocol
- The standard name of the requested protocol, e.g TLSv1.2SSLContext.getInstance(String)
public void validate()
Builder
validate
in interface Builder<SslEngineConfiguration>
public SslEngineConfiguration create()
Builder
create
in interface Builder<SslEngineConfiguration>
public SslEngineConfigurationBuilder read(SslEngineConfiguration template)
Builder
read
in interface Builder<SslEngineConfiguration>
template
- the configuration from which to "clone" this config if needed.public SslEngineConfigurationBuilder sniHostName(String domain)
sniHostName
in interface SslConfigurationChildBuilder
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.