class HTTPClient::JRubySSLSocket::SystemTrustManagerFactory::SystemTrustManager
def checkClientTrusted(chain, authType); end
def checkClientTrusted(chain, authType); end
def checkServerTrusted(chain, authType)
def checkServerTrusted(chain, authType) is_ok = false excn = nil # TODO can we detect the depth from excn? error_depth = -1 error = nil error_message = nil begin @original.checkServerTrusted(chain, authType) is_ok = true rescue java.security.cert.CertificateException => excn is_ok = false error = excn.class.name error_message = excn.getMessage end is_ok = @verify_callback.call(is_ok, chain, error_depth, error, error_message) unless is_ok excn ||= OpenSSL::SSL::SSLError.new('verifycallback failed') raise excn end end
def getAcceptedIssuers; end
def getAcceptedIssuers; end
def initialize(original, verify_callback)
def initialize(original, verify_callback) @original = original @verify_callback = JSSEVerifyCallback.new(verify_callback) end