Package org.wildfly.security.ssl
Class X509CRLExtendedTrustManager
java.lang.Object
javax.net.ssl.X509ExtendedTrustManager
org.wildfly.security.ssl.X509CRLExtendedTrustManager
- All Implemented Interfaces:
TrustManager,X509TrustManager
Deprecated.
Extension to the
X509TrustManager interface to support CRL verification.- Author:
- Pedro Igor
-
Constructor Summary
ConstructorsConstructorDescriptionX509CRLExtendedTrustManager(KeyStore trustStore) Deprecated.Creates a new instance using with a default trust manager factory.X509CRLExtendedTrustManager(KeyStore trustStore, InputStream crlStream) Deprecated.Creates a new instance using with a default trust manager factory.X509CRLExtendedTrustManager(KeyStore trustStore, TrustManagerFactory trustManagerFactory, InputStream crlStream, int maxCertPath, X509Certificate[] acceptedIssuers) Deprecated.Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckClientTrusted(X509Certificate[] chain, String authType) Deprecated.voidcheckClientTrusted(X509Certificate[] chain, String authType, Socket socket) Deprecated.voidcheckClientTrusted(X509Certificate[] chain, String authType, SSLEngine sslEngine) Deprecated.voidcheckServerTrusted(X509Certificate[] chain, String authType) Deprecated.voidcheckServerTrusted(X509Certificate[] chain, String authType, Socket socket) Deprecated.voidcheckServerTrusted(X509Certificate[] chain, String authType, SSLEngine sslEngine) Deprecated.Deprecated.
-
Constructor Details
-
X509CRLExtendedTrustManager
public X509CRLExtendedTrustManager(KeyStore trustStore, TrustManagerFactory trustManagerFactory, InputStream crlStream, int maxCertPath, X509Certificate[] acceptedIssuers) Deprecated.Creates a new instance.- Parameters:
trustStore- aKeyStorewith the trusted certificates (must not benull)trustManagerFactory- the trust manager factorycrlStream- the input stream pointing to a certificate revocation list (may benull). The stream will be automatically closed after the invocationmaxCertPath- the maximum number of non-self-issued intermediate certificates that may exist in a certification path. The value must be equal or greater than 1.acceptedIssuers- an array of certificate authority certificates which are trusted for authenticating peers (may benull).
-
X509CRLExtendedTrustManager
public X509CRLExtendedTrustManager(KeyStore trustStore, InputStream crlStream) throws NoSuchAlgorithmException Deprecated.Creates a new instance using with a default trust manager factory. The factory's algorithm isTrustManagerFactory.getDefaultAlgorithm().- Parameters:
trustStore- aKeyStorewith the trusted certificates (must not benull)crlStream- the input stream pointing to a certificate revocation list (may benull). The stream will be automatically closed after the invocation- Throws:
NoSuchAlgorithmException- in case the default trust manager factory can not be obtained
-
X509CRLExtendedTrustManager
Deprecated.Creates a new instance using with a default trust manager factory. The factory's algorithm is
TrustManagerFactory.getDefaultAlgorithm().When using this constructor, the instance is going to obtain CRLs from the distribution points within the certificates being validated. Make sure you have system property
com.sun.security.enableCRLDPset.- Parameters:
trustStore- aKeyStorewith the trusted certificates (must not benull)- Throws:
NoSuchAlgorithmException- in case the default trust manager factory can not be obtained
-
-
Method Details
-
checkClientTrusted
public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException Deprecated.- Throws:
CertificateException
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException Deprecated.- Throws:
CertificateException
-
getAcceptedIssuers
Deprecated. -
checkClientTrusted
public void checkClientTrusted(X509Certificate[] chain, String authType, Socket socket) throws CertificateException Deprecated.- Specified by:
checkClientTrustedin classX509ExtendedTrustManager- Throws:
CertificateException
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] chain, String authType, Socket socket) throws CertificateException Deprecated.- Specified by:
checkServerTrustedin classX509ExtendedTrustManager- Throws:
CertificateException
-
checkClientTrusted
public void checkClientTrusted(X509Certificate[] chain, String authType, SSLEngine sslEngine) throws CertificateException Deprecated.- Specified by:
checkClientTrustedin classX509ExtendedTrustManager- Throws:
CertificateException
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] chain, String authType, SSLEngine sslEngine) throws CertificateException Deprecated.- Specified by:
checkServerTrustedin classX509ExtendedTrustManager- Throws:
CertificateException
-
org.wildfly.security.ssl.X509RevocationTrustManagerinstead