public interface SelfSignedCertificateListenerInterface for the listener to handle self-signed certificates.
SelfSignedResponse checkServerTrusted(X509Certificate chain, String authType)The check is called by the X509 trust manager. The callee is expected to return a
SelfSignedResponsethat indicates whether the certificate should be trusted and if that result should be cached for further usage. The cache of trusted servers can be cleared by calling
chain- the certificates chain to check
authType- the type of the cerificates
SelfSignedResponseindicating if the certificate should be trusted and if the response should be cached