Package com.mongodb.connection
Class SslSettings
- java.lang.Object
 - 
- com.mongodb.connection.SslSettings
 
 
- 
@Immutable @Deprecated(since="2021-05-27") public class SslSettings extends java.lang.Object
Deprecated.Usage of this API is not supported in AEM as a Cloud Service.Settings for connecting to MongoDB via SSL.- Since:
 - 3.0
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSslSettings.BuilderDeprecated.Usage of this API is not supported in AEM as a Cloud Service. 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static SslSettings.Builderbuilder()Deprecated.Gets a Builder for creating a new SSLSettings instance.static SslSettings.Builderbuilder(SslSettings sslSettings)Deprecated.Creates a builder instance.booleanequals(java.lang.Object o)Deprecated.javax.net.ssl.SSLContextgetContext()Deprecated.Gets the SSLContext configured for use with SSL connections.inthashCode()Deprecated.booleanisEnabled()Deprecated.Returns whether SSL is enabled.booleanisInvalidHostNameAllowed()Deprecated.Returns whether invalid host names should be allowed.java.lang.StringtoString()Deprecated. 
 - 
 
- 
- 
Method Detail
- 
builder
public static SslSettings.Builder builder()
Deprecated.Gets a Builder for creating a new SSLSettings instance.- Returns:
 - a new Builder for SSLSettings.
 
 
- 
builder
public static SslSettings.Builder builder(SslSettings sslSettings)
Deprecated.Creates a builder instance.- Parameters:
 sslSettings- existing SslSettings to default the builder settings on.- Returns:
 - a builder
 - Since:
 - 3.7
 
 
- 
isEnabled
public boolean isEnabled()
Deprecated.Returns whether SSL is enabled.- Returns:
 - true if SSL is enabled.
 
 
- 
isInvalidHostNameAllowed
public boolean isInvalidHostNameAllowed()
Deprecated.Returns whether invalid host names should be allowed. Defaults to false. Take care before setting this to true, as it makes the application susceptible to man-in-the-middle attacks.- Returns:
 - true if invalid host names are allowed.
 
 
- 
getContext
public javax.net.ssl.SSLContext getContext()
Deprecated.Gets the SSLContext configured for use with SSL connections.- Returns:
 - the SSLContext, which defaults to null if not configured.  In that case 
SSLContext.getDefault()will be used if SSL is enabled. - Since:
 - 3.5
 - See Also:
 SSLContext.getDefault()
 
- 
equals
public boolean equals(java.lang.Object o)
Deprecated.- Overrides:
 equalsin classjava.lang.Object
 
- 
hashCode
public int hashCode()
Deprecated.- Overrides:
 hashCodein classjava.lang.Object
 
- 
toString
public java.lang.String toString()
Deprecated.- Overrides:
 toStringin classjava.lang.Object
 
 - 
 
 -