Class ConnectionTestResult
java.lang.Object
de.xima.fc.certificate.provider.tls.ConnectionTestResult
- All Implemented Interfaces:
Serializable
Represents the result of a TLS connection test, including the trust validation status and the certificate chain used
during the test.
This class is immutable and uses Lombok's @Value annotation to generate boilerplate code such as getters,
equals, hashCode, and toString methods.
- Since:
- 04.06.25
- Author:
- tobias
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConnectionTestResult(boolean serviceAvailable, Exception exception, TrustValidationResult clientTrustValidationResult, TrustValidationResult serverTrustValidationResult) Creates a newConnectionTestResultinstance. -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe result of the client trust validation, including captured certificates and any exceptions.The exception that occurred during the connection test, if any.The result of the server trust validation, including captured certificates and any exceptions.inthashCode()booleanIndicates whether the service is available at all.booleanIndicates whether the connection test was successful.toString()
-
Constructor Details
-
ConnectionTestResult
public ConnectionTestResult(boolean serviceAvailable, Exception exception, TrustValidationResult clientTrustValidationResult, TrustValidationResult serverTrustValidationResult) Creates a newConnectionTestResultinstance.- Parameters:
serviceAvailable- Indicates whether the service is available at all.exception- The exception that occurred during the connection test, if any.clientTrustValidationResult- The result of the client trust validation, including captured certificates and any exceptions.serverTrustValidationResult- The result of the server trust validation, including captured certificates and any exceptions.
-
-
Method Details
-
isSuccessful
public boolean isSuccessful()Indicates whether the connection test was successful. A successful test means that the connection could be established and all trust validations passed without exceptions.- Returns:
trueif the connection test was successful,falseotherwise.
-
isServiceAvailable
public boolean isServiceAvailable()Indicates whether the service is available at all. -
getException
The exception that occurred during the connection test, if any. -
getClientTrustValidationResult
The result of the client trust validation, including captured certificates and any exceptions. -
getServerTrustValidationResult
The result of the server trust validation, including captured certificates and any exceptions. -
equals
-
hashCode
-
toString
-