Class TlsValidationOptions
- java.lang.Object
-
- com.azure.resourcemanager.videoanalyzer.models.TlsValidationOptions
-
public final class TlsValidationOptions extends Object
Options for controlling the validation of TLS endpoints.
-
-
Constructor Summary
Constructors Constructor Description TlsValidationOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
ignoreHostname()
Get the ignoreHostname property: When set to 'true' causes the certificate subject name validation to be skipped.String
ignoreSignature()
Get the ignoreSignature property: When set to 'true' causes the certificate chain trust validation to be skipped.void
validate()
Validates the instance.TlsValidationOptions
withIgnoreHostname(String ignoreHostname)
Set the ignoreHostname property: When set to 'true' causes the certificate subject name validation to be skipped.TlsValidationOptions
withIgnoreSignature(String ignoreSignature)
Set the ignoreSignature property: When set to 'true' causes the certificate chain trust validation to be skipped.
-
-
-
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.
-
-