Class DummyX509TrustManager
java.lang.Object
org.apache.nutch.protocol.interactiveselenium.DummyX509TrustManager
- All Implemented Interfaces:
TrustManager,X509TrustManager
-
Constructor Summary
ConstructorsConstructorDescriptionDummyX509TrustManager(KeyStore keystore) Constructor for DummyX509TrustManager. -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckClientTrusted(X509Certificate[] arg0, String arg1) voidcheckServerTrusted(X509Certificate[] arg0, String arg1) booleanisClientTrusted(X509Certificate[] certificates) booleanisServerTrusted(X509Certificate[] certificates)
-
Constructor Details
-
DummyX509TrustManager
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:
-
-
Method Details
-
isClientTrusted
- Parameters:
certificates- aX509Certificatearray- Returns:
- true if trusted, false otherwise
- See Also:
-
isServerTrusted
- Parameters:
certificates- aX509Certificatearray- Returns:
- true if trusted, false otherwise
- See Also:
-
getAcceptedIssuers
- Specified by:
getAcceptedIssuersin interfaceX509TrustManager- Returns:
- a
X509Certificatearray - See Also:
-
checkClientTrusted
- Specified by:
checkClientTrustedin interfaceX509TrustManager- Throws:
CertificateException
-
checkServerTrusted
- Specified by:
checkServerTrustedin interfaceX509TrustManager- Throws:
CertificateException
-