Interface ITlsConnectionTestContext


public interface ITlsConnectionTestContext
Interface representing the context for testing TLS connections based on an SSLContext. This interface provides methods to retrieve the SSL context, check the status of the last trust validation, and access any certificates captured during the last trust validation.
Since:
8.5.0
Author:
Norman Lorenz
  • Method Details

    • getLastClientTrustValidationResult

      TrustValidationResult getLastClientTrustValidationResult()
      Retrieves the result of the last client trust validation, which includes details about the captured certificates and whether the validation passed.
      Returns:
      An TrustValidationResult containing the results of the last client trust validation, or null if no validation has been performed yet on the SSLContext.
      See Also:
    • getLastServerTrustValidationResult

      TrustValidationResult getLastServerTrustValidationResult()
      Retrieves the result of the last server trust validation, which includes details about the captured certificates and whether the validation passed.
      Returns:
      An TrustValidationResult containing the results of the last server trust validation, or null if no validation has been performed yet on the SSLContext.
      See Also:
    • getSSLContext

      @NotNull @NotNull SSLContext getSSLContext()
      Returns the SSLContext that can be used to establish secure connections. The result of the latest trust validation can be accessed via getLastServerTrustValidationResult().
      Returns:
      The SSLContext for secure connections.
      See Also:
    • getTrustManager

      @NotNull @NotNull X509TrustManager getTrustManager()