@Immutable public class SslSettings extends java.lang.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.
|
static SslSettings.Builder |
builder(SslSettings sslSettings)
Creates a builder instance.
|
boolean |
equals(java.lang.Object o) |
javax.net.ssl.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.
|
java.lang.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 javax.net.ssl.SSLContext getContext()
SSLContext.getDefault()
will be used if SSL
is enabled.SSLContext.getDefault()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2010 - 2020 Adobe. All Rights Reserved