@Immutable public class SslSettings extends Object
Modifier and Type | Class | Description |
---|---|---|
static class |
SslSettings.Builder |
A builder for creating SSLSettings.
|
Modifier and Type | Method | Description |
---|---|---|
static SslSettings.Builder |
builder() |
Gets a Builder for creating a new SSLSettings instance.
|
static SslSettings.Builder |
builder(SslSettings sslSettings) |
Creates a builder instance.
|
boolean |
equals(Object o) |
|
SSLContext |
getContext() |
Gets the SSLContext configured for use with SSL connections.
|
int |
hashCode() |
|
boolean |
isEnabled() |
Returns whether SSL is enabled.
|
boolean |
isInvalidHostNameAllowed() |
Returns whether invalid host names should be allowed.
|
String |
toString() |
public static SslSettings.Builder builder()
public static SslSettings.Builder builder(SslSettings sslSettings)
sslSettings
- existing SslSettings to default the builder settings on.public boolean isEnabled()
public boolean isInvalidHostNameAllowed()
public SSLContext getContext()
SSLContext.getDefault()
will be used if SSL
is enabled.SSLContext.getDefault()