public class SslEngineConfigurationBuilder extends Object implements SslConfigurationChildBuilder
Modifier and Type | Method and Description |
---|---|
SslEngineConfiguration |
create()
Create the configuration bean
|
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(String) . |
SslEngineConfigurationBuilder |
keyStorePassword(char[] keyStorePassword)
Specifies the password needed to open the keystore You also need to specify a
keyStoreFileName(String) Alternatively specify an array of
#keyManagers(KeyManager[]) |
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(String) . |
SslEngineConfigurationBuilder |
trustStorePassword(char[] trustStorePassword)
Specifies the password needed to open the truststore You also need to specify a
trustStoreFileName(String) Alternatively specify an array of
#trustManagers(TrustManager[]) |
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(String)
. Alternatively specify an array of
#keyManagers(KeyManager[])
public SslEngineConfigurationBuilder keyStorePassword(char[] keyStorePassword)
keyStoreFileName(String)
Alternatively specify an array of
#keyManagers(KeyManager[])
public SslEngineConfigurationBuilder trustStoreFileName(String trustStoreFileName)
SSLContext
You also need
to specify a #trustStorePassword(String)
. Alternatively specify an array of
#trustManagers(TrustManager[])
public SslEngineConfigurationBuilder trustStorePassword(char[] trustStorePassword)
trustStoreFileName(String)
Alternatively specify an array of
#trustManagers(TrustManager[])
public SslEngineConfigurationBuilder keyStoreCertificatePassword(char[] keyStoreCertificatePassword)
keyStoreFileName(String)
. If password is not specified, password provided in
#keyStorePassword(String)
will be used.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 © 2017 JBoss, a division of Red Hat. All rights reserved.