Class TlsValidationOptions


  • public final class TlsValidationOptions
    extends Object
    Options for controlling the validation of TLS endpoints.
    • Constructor Detail

      • TlsValidationOptions

        public TlsValidationOptions()
    • Method Detail

      • ignoreHostname

        public String ignoreHostname()
        Get the ignoreHostname property: When set to 'true' causes the certificate subject name validation to be skipped. Default is 'false'.
        Returns:
        the ignoreHostname value.
      • withIgnoreHostname

        public TlsValidationOptions withIgnoreHostname​(String ignoreHostname)
        Set the ignoreHostname property: When set to 'true' causes the certificate subject name validation to be skipped. Default is 'false'.
        Parameters:
        ignoreHostname - the ignoreHostname value to set.
        Returns:
        the TlsValidationOptions object itself.
      • ignoreSignature

        public String ignoreSignature()
        Get the ignoreSignature property: When set to 'true' causes the certificate chain trust validation to be skipped. Default is 'false'.
        Returns:
        the ignoreSignature value.
      • withIgnoreSignature

        public TlsValidationOptions withIgnoreSignature​(String ignoreSignature)
        Set the ignoreSignature property: When set to 'true' causes the certificate chain trust validation to be skipped. Default is 'false'.
        Parameters:
        ignoreSignature - the ignoreSignature value to set.
        Returns:
        the TlsValidationOptions object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.