public class SSLOpts extends Object
RestClientBuilder.enableSSL(SSLOpts)
.Modifier and Type | Class and Description |
---|---|
static class |
SSLOpts.CertValidate
Certificate validation options.
|
static class |
SSLOpts.HostVerify
Certificate host verification options.
|
Modifier and Type | Field and Description |
---|---|
static SSLOpts |
DEFAULT
Reusable SSL options for normal SSL (default cert validation and hostname verification).
|
static SSLOpts |
LAX
Reusable SSL options for lenient SSL (no cert validation or hostname verification).
|
Constructor and Description |
---|
SSLOpts()
Constructor.
|
SSLOpts(String protocols,
SSLOpts.CertValidate certValidate,
SSLOpts.HostVerify hostVerify)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
SSLOpts.CertValidate |
getCertValidate()
Bean property getter:
|
protected String |
getDefaultProtocols()
Returns the default list of SSL protocols to support when the
protocols parameter on the constructor
is |
SSLOpts.HostVerify |
getHostVerify()
Bean property getter:
|
String |
getProtocols()
Bean property getter:
|
SSLOpts |
setCertValidate(SSLOpts.CertValidate certValidate)
Bean property setter:
|
SSLOpts |
setHostVerify(SSLOpts.HostVerify hostVerify)
Bean property setter:
|
SSLOpts |
setProtocols(String protocols)
Bean property setter:
|
public static final SSLOpts LAX
public SSLOpts()
public SSLOpts(String protocols, SSLOpts.CertValidate certValidate, SSLOpts.HostVerify hostVerify)
protocols
- A comma-delimited list of supported SSL protocols.
If getDefaultProtocols()
.certValidate
- Certificate validation setting.hostVerify
- Host verification setting.protected String getDefaultProtocols()
protocols
parameter on the constructor
is
The default value is
Subclasses can override this method to provide their own logic for determining default supported protocols.
public String getProtocols()
public SSLOpts setProtocols(String protocols)
protocols
- The new value for the public SSLOpts.CertValidate getCertValidate()
public SSLOpts setCertValidate(SSLOpts.CertValidate certValidate)
certValidate
- The new value for the public SSLOpts.HostVerify getHostVerify()
public SSLOpts setHostVerify(SSLOpts.HostVerify hostVerify)
hostVerify
- The new value for the Copyright © 2018 Apache. All rights reserved.