public class JcaJceUtils
extends java.lang.Object
Constructor and Description |
---|
JcaJceUtils() |
Modifier and Type | Method and Description |
---|---|
static javax.net.ssl.KeyManagerFactory |
createKeyManagerFactory(java.lang.String type,
java.lang.String provider,
java.security.KeyStore clientKeyStore,
char[] clientKeyStorePass) |
static javax.net.ssl.X509TrustManager[] |
getCertPathTrustManager(java.util.Set<java.security.cert.TrustAnchor> anchors,
java.security.cert.CRL[] revocationLists) |
static javax.net.ssl.X509TrustManager |
getTrustAllTrustManager() |
static void |
validateServerCertUsage(java.security.cert.X509Certificate x509Certificate) |
public static javax.net.ssl.X509TrustManager getTrustAllTrustManager()
public static javax.net.ssl.X509TrustManager[] getCertPathTrustManager(java.util.Set<java.security.cert.TrustAnchor> anchors, java.security.cert.CRL[] revocationLists)
public static void validateServerCertUsage(java.security.cert.X509Certificate x509Certificate) throws java.security.cert.CertificateException
java.security.cert.CertificateException
public static javax.net.ssl.KeyManagerFactory createKeyManagerFactory(java.lang.String type, java.lang.String provider, java.security.KeyStore clientKeyStore, char[] clientKeyStorePass) throws java.security.UnrecoverableKeyException, java.security.NoSuchAlgorithmException, java.security.KeyStoreException, java.security.NoSuchProviderException
java.security.UnrecoverableKeyException
java.security.NoSuchAlgorithmException
java.security.KeyStoreException
java.security.NoSuchProviderException