Class TrustValidationResult

  • All Implemented Interfaces:
    Serializable

    public final class TrustValidationResult
    extends Object
    implements Serializable
    Model class representing the result of a trust validation in a TLS context.
    Since:
    8.5.0
    Author:
    Norman Lorenz
    See Also:
    Serialized Form
    • Constructor Detail

      • TrustValidationResult

        public TrustValidationResult​(X509Certificate[] capturedCertificateChain,
                                     boolean trustValidationPassed,
                                     Exception trustValidationException)
        Creates a new TrustValidationResult instance.
        Parameters:
        capturedCertificateChain - The certificate chain that was captured during the trust validation.
        trustValidationPassed - Indicates if the trust validation passed successfully.
        trustValidationException - The exception that occurred during the trust validation, if any.
    • Method Detail

      • getCapturedCertificateChain

        public X509Certificate[] getCapturedCertificateChain()
        The certificate chain that was captured during the trust validation.
      • isTrustValidationPassed

        public boolean isTrustValidationPassed()
        Indicates if the trust validation passed successfully.
      • getTrustValidationException

        public Exception getTrustValidationException()
        The exception that occurred during the trust validation, if any.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object