Interface SecurityPlan


public sealed interface SecurityPlan
A SecurityPlan consists of encryption and trust details.
Since:
1.0.0
  • Method Details

    • sslContext

      SSLContext sslContext()
      Returns SSLContext that must be used.
      Returns:
      the SSLContext, must not be null
    • verifyHostname

      boolean verifyHostname()
      Indicates if hostname verification must be done.
      Returns:
      true if enabled, false if disabled
    • expectedHostname

      String expectedHostname()
      An optional hostname that is used for hostname verification when the verifyHostname() option is enabled.

      When null value is used, the hostname provided in the connection URI is used for verification. Therefore, this option should only be used if a diferrent name should be used for verification. For example, when the URI contains an IP address, but a domain name should be used for verification purposes.

      Returns:
      the expected hostname
      Since:
      4.0.0