public sealed interface SecurityPlan
A SecurityPlan consists of encryption and trust details.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionAn optional hostname that is used for hostname verification when theverifyHostname()option is enabled.ReturnsSSLContextthat must be used.booleanIndicates if hostname verification must be done.
-
Method Details
-
sslContext
SSLContext sslContext()ReturnsSSLContextthat must be used.- Returns:
- the
SSLContext, must not benull
-
verifyHostname
boolean verifyHostname()Indicates if hostname verification must be done.- Returns:
trueif enabled,falseif disabled
-
expectedHostname
String expectedHostname()An optional hostname that is used for hostname verification when theverifyHostname()option is enabled.When
nullvalue is used, the hostname provided in the connectionURIis used for verification. Therefore, this option should only be used if a diferrent name should be used for verification. For example, when theURIcontains an IP address, but a domain name should be used for verification purposes.- Returns:
- the expected hostname
- Since:
- 4.0.0
-