Interface ITlsConnectionTestContext
-
public interface ITlsConnectionTestContextInterface representing the context for testing TLS connections based on anSSLContext. 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TrustValidationResultgetLastClientTrustValidationResult()Retrieves the result of the last client trust validation, which includes details about the captured certificates and whether the validation passed.TrustValidationResultgetLastServerTrustValidationResult()Retrieves the result of the last server trust validation, which includes details about the captured certificates and whether the validation passed.@NotNull SSLContextgetSSLContext()Returns the SSLContext that can be used to establish secure connections.@NotNull X509TrustManagergetTrustManager()
-
-
-
Method Detail
-
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:
getSSLContext()
-
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()
-
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 viagetLastServerTrustValidationResult().- Returns:
- The SSLContext for secure connections.
- See Also:
getLastServerTrustValidationResult()
-
getTrustManager
@NotNull @NotNull X509TrustManager getTrustManager()
-
-