org.apache.jmeter.util

Class CustomX509TrustManager

Implemented Interfaces:
X509TrustManager

public class CustomX509TrustManager
extends Object
implements X509TrustManager

Custom TrustManager ignores all certificate errors TODO: implement conditional checking and logging (Derived from AuthSSLX509TrustManager in HttpClient contrib directory)

Constructor Summary

CustomX509TrustManager(X509TrustManager defaultTrustManager)

Method Summary

void
checkClientTrusted(X509Certificate[] certificates, String authType)
void
checkServerTrusted(X509Certificate[] certificates, String authType)
X509Certificate[]
getAcceptedIssuers()

Constructor Details

CustomX509TrustManager

public CustomX509TrustManager(X509TrustManager defaultTrustManager)

Method Details

checkClientTrusted

public void checkClientTrusted(X509Certificate[] certificates,
                               String authType)
            throws CertificateException

checkServerTrusted

public void checkServerTrusted(X509Certificate[] certificates,
                               String authType)
            throws CertificateException

getAcceptedIssuers

public X509Certificate[] getAcceptedIssuers()

Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.