Interface SSLClientHelper.Callback
-
- Enclosing class:
- SSLClientHelper
public static interface SSLClientHelper.Callback
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onFailure(java.lang.Exception e)
Method called by CertificateEngineerClient library when it fails to connect to a server at a specified port, either using the global (system) trust store or using the local trust store provided by the user of the library.void
onSuccess(javax.net.ssl.SSLSocketFactory sslSockFactory)
Method called when we successfully connect to a server at a specified port via TLS, either using the global (system) trust store or using the local trust store provided by the user of the library.
-
-
-
Method Detail
-
onSuccess
void onSuccess(javax.net.ssl.SSLSocketFactory sslSockFactory)
Method called when we successfully connect to a server at a specified port via TLS, either using the global (system) trust store or using the local trust store provided by the user of the library. The local trust store might get updated with the certificate used to connect to the server, if the trust store file did not already contain the certificate.- Parameters:
sslSockFactory
- - An instance of SSLSocketFactory that is ready to be used by the caller code. For example, this instance can be used to create sockets to connect to a server at a port.
-
onFailure
void onFailure(java.lang.Exception e)
Method called by CertificateEngineerClient library when it fails to connect to a server at a specified port, either using the global (system) trust store or using the local trust store provided by the user of the library.- Parameters:
e
- - Exception indicating why the connection failed
-
-