Interface SelfSignedCertificateListener


  • public interface SelfSignedCertificateListener
    Interface for the listener to handle self-signed certificates.
    Since:
    100.0.0
    • Method Detail

      • checkServerTrusted

        SelfSignedResponse checkServerTrusted​(java.security.cert.X509Certificate[] chain,
                                              java.lang.String authType)
        The check is called by the X509 trust manager. The callee is expected to return a SelfSignedResponse that 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 AuthenticationManager.clearTrustedCertificates().
        Parameters:
        chain - the certificates chain to check
        authType - the type of the cerificates
        Returns:
        a SelfSignedResponse indicating if the certificate should be trusted and if the response should be cached
        Since:
        100.0.0