Class DummyX509TrustManager
- java.lang.Object
-
- org.apache.nutch.protocol.interactiveselenium.DummyX509TrustManager
-
- All Implemented Interfaces:
TrustManager,X509TrustManager
public class DummyX509TrustManager extends Object implements X509TrustManager
-
-
Constructor Summary
Constructors Constructor Description DummyX509TrustManager(KeyStore keystore)Constructor for DummyX509TrustManager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckClientTrusted(X509Certificate[] arg0, String arg1)voidcheckServerTrusted(X509Certificate[] arg0, String arg1)X509Certificate[]getAcceptedIssuers()booleanisClientTrusted(X509Certificate[] certificates)booleanisServerTrusted(X509Certificate[] certificates)
-
-
-
Constructor Detail
-
DummyX509TrustManager
public DummyX509TrustManager(KeyStore keystore) throws NoSuchAlgorithmException, KeyStoreException
Constructor for DummyX509TrustManager.- Parameters:
keystore- a initializedKeyStore- Throws:
NoSuchAlgorithmException- if there is a fatal error obtaining aTrustManagerFactoryfor the default algorithm.KeyStoreException- if there is a fatal error initializing theTrustManagerFactorywith the provided keystore.- See Also:
TrustManagerFactory.getDefaultAlgorithm()
-
-
Method Detail
-
isClientTrusted
public boolean isClientTrusted(X509Certificate[] certificates)
- Parameters:
certificates- aX509Certificatearray- Returns:
- true if trusted, false otherwise
- See Also:
X509TrustManager.checkClientTrusted(X509Certificate[], String)
-
isServerTrusted
public boolean isServerTrusted(X509Certificate[] certificates)
- Parameters:
certificates- aX509Certificatearray- Returns:
- true if trusted, false otherwise
- See Also:
X509TrustManager.checkServerTrusted(X509Certificate[], String)
-
getAcceptedIssuers
public X509Certificate[] getAcceptedIssuers()
- Specified by:
getAcceptedIssuersin interfaceX509TrustManager- Returns:
- a
X509Certificatearray - See Also:
X509TrustManager.getAcceptedIssuers()
-
checkClientTrusted
public void checkClientTrusted(X509Certificate[] arg0, String arg1) throws CertificateException
- Specified by:
checkClientTrustedin interfaceX509TrustManager- Throws:
CertificateException
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] arg0, String arg1) throws CertificateException
- Specified by:
checkServerTrustedin interfaceX509TrustManager- Throws:
CertificateException
-
-