public static interface

SSLClientHelper.Callback

com.microstrategy.utils.certificate.SSLClientHelper.Callback

Summary

Public Methods
abstract void onFailure(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.
abstract void onSuccess(SSLSocketFactory sslSockFactory)
Method called by CertificateEngineerClient library when it can successfully 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.

Public Methods

public abstract void onFailure (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

public abstract void onSuccess (SSLSocketFactory sslSockFactory)

Method called by CertificateEngineerClient library when it can successfully 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. 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.