org.apache.nutch.protocol.httpclient
Class DummyX509TrustManager

java.lang.Object
  extended byorg.apache.nutch.protocol.httpclient.DummyX509TrustManager
All Implemented Interfaces:
TrustManager, X509TrustManager

public class DummyX509TrustManager
extends Object
implements X509TrustManager


Constructor Summary
DummyX509TrustManager(KeyStore keystore)
          Constructor for DummyX509TrustManager.
 
Method Summary
 void checkClientTrusted(X509Certificate[] arg0, String arg1)
           
 void checkServerTrusted(X509Certificate[] arg0, String arg1)
           
 X509Certificate[] getAcceptedIssuers()
           
 boolean isClientTrusted(X509Certificate[] certificates)
           
 boolean isServerTrusted(X509Certificate[] certificates)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyX509TrustManager

public DummyX509TrustManager(KeyStore keystore)
                      throws NoSuchAlgorithmException,
                             KeyStoreException
Constructor for DummyX509TrustManager.

Method Detail

isClientTrusted

public boolean isClientTrusted(X509Certificate[] certificates)
See Also:
javax.net.ssl.X509TrustManager#isClientTrusted(X509Certificate[])

isServerTrusted

public boolean isServerTrusted(X509Certificate[] certificates)
See Also:
javax.net.ssl.X509TrustManager#isServerTrusted(X509Certificate[])

getAcceptedIssuers

public X509Certificate[] getAcceptedIssuers()
Specified by:
getAcceptedIssuers in interface X509TrustManager
See Also:
X509TrustManager.getAcceptedIssuers()

checkClientTrusted

public void checkClientTrusted(X509Certificate[] arg0,
                               String arg1)
                        throws CertificateException
Specified by:
checkClientTrusted in interface X509TrustManager
Throws:
CertificateException

checkServerTrusted

public void checkServerTrusted(X509Certificate[] arg0,
                               String arg1)
                        throws CertificateException
Specified by:
checkServerTrusted in interface X509TrustManager
Throws:
CertificateException


Copyright © 2006 The Apache Software Foundation