Package org.bouncycastle.est.jcajce
Class JcaJceUtils
java.lang.Object
org.bouncycastle.est.jcajce.JcaJceUtils
General utility methods for building common objects for supporting the JCA/JCE/JSSE.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic KeyManagerFactory
createKeyManagerFactory
(String type, String provider, KeyStore clientKeyStore, char[] clientKeyStorePass) static X509TrustManager[]
getCertPathTrustManager
(Set<TrustAnchor> anchors, CRL[] revocationLists) static X509TrustManager
static void
validateServerCertUsage
(X509Certificate x509Certificate)
-
Constructor Details
-
JcaJceUtils
public JcaJceUtils()
-
-
Method Details
-
getTrustAllTrustManager
-
getCertPathTrustManager
public static X509TrustManager[] getCertPathTrustManager(Set<TrustAnchor> anchors, CRL[] revocationLists) -
validateServerCertUsage
public static void validateServerCertUsage(X509Certificate x509Certificate) throws CertificateException - Throws:
CertificateException
-
createKeyManagerFactory
public static KeyManagerFactory createKeyManagerFactory(String type, String provider, KeyStore clientKeyStore, char[] clientKeyStorePass) throws UnrecoverableKeyException, NoSuchAlgorithmException, KeyStoreException, NoSuchProviderException
-