@Immutable public class SslSettings extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SslSettings.Builder
A builder for creating SSLSettings.
|
Modifier and Type | Method and Description |
---|---|
static SslSettings.Builder |
builder()
Gets a Builder for creating a new SSLSettings 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 boolean isEnabled()
public boolean isInvalidHostNameAllowed()
public SSLContext getContext()
SSLContext.getDefault()
will be used if SSL
is enabled.SSLContext.getDefault()