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 Summary
Modifier and TypeMethodDescriptionRetrieves the result of the last client trust validation, which includes details about the captured certificates and whether the validation passed.Retrieves the result of the last server trust validation, which includes details about the captured certificates and whether the validation passed.@NotNull SSLContextReturns the SSLContext that can be used to establish secure connections.@NotNull X509TrustManager
-
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
TrustValidationResultcontaining the results of the last client trust validation, ornullif no validation has been performed yet on theSSLContext. - 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
TrustValidationResultcontaining the results of the last server trust validation, ornullif no validation has been performed yet on theSSLContext. - See Also:
-
getSSLContext
Returns the SSLContext that can be used to establish secure connections. The result of the latest trust validation can be accessed viagetLastServerTrustValidationResult().- Returns:
- The SSLContext for secure connections.
- See Also:
-
getTrustManager
-