public final class KeyStoreUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DUMMY_PASSWORD |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
containsIdentityMaterial(KeyStore keyStore) |
static boolean |
containsTrustMaterial(KeyStore keyStore) |
static int |
countAmountOfIdentityMaterial(KeyStore keyStore) |
static int |
countAmountOfTrustMaterial(KeyStore keyStore) |
static KeyStore |
createIdentityStore(Key privateKey,
char[] privateKeyPassword,
List<? extends Certificate> certificateChain) |
static KeyStore |
createIdentityStore(Key privateKey,
char[] privateKeyPassword,
String alias,
List<? extends Certificate> certificateChain) |
static <T extends Certificate> |
createIdentityStore(Key privateKey,
char[] privateKeyPassword,
String alias,
T... certificateChain) |
static <T extends Certificate> |
createIdentityStore(Key privateKey,
char[] privateKeyPassword,
T... certificateChain) |
static KeyStore |
createKeyStore() |
static KeyStore |
createKeyStore(char[] keyStorePassword) |
static KeyStore |
createKeyStore(String keyStoreType,
char[] keyStorePassword) |
static <T extends Certificate> |
createTrustStore(List<T> certificates) |
static <T extends Certificate> |
createTrustStore(T... certificates) |
static <T extends X509TrustManager> |
createTrustStore(T... trustManagers) |
static KeyStore |
loadKeyStore(InputStream keystoreInputStream,
char[] keystorePassword) |
static KeyStore |
loadKeyStore(InputStream keystoreInputStream,
char[] keystorePassword,
String keystoreType) |
static KeyStore |
loadKeyStore(Path keystorePath,
char[] keystorePassword) |
static KeyStore |
loadKeyStore(Path keystorePath,
char[] keystorePassword,
String keystoreType) |
static KeyStore |
loadKeyStore(String keystorePath,
char[] keystorePassword) |
static KeyStore |
loadKeyStore(String keystorePath,
char[] keystorePassword,
String keystoreType) |
static List<KeyStore> |
loadSystemKeyStores() |
public static final String DUMMY_PASSWORD
public static KeyStore loadKeyStore(String keystorePath, char[] keystorePassword, String keystoreType)
public static KeyStore loadKeyStore(Path keystorePath, char[] keystorePassword, String keystoreType)
public static KeyStore loadKeyStore(InputStream keystoreInputStream, char[] keystorePassword)
public static KeyStore loadKeyStore(InputStream keystoreInputStream, char[] keystorePassword, String keystoreType)
public static KeyStore createIdentityStore(Key privateKey, char[] privateKeyPassword, String alias, List<? extends Certificate> certificateChain)
public static KeyStore createIdentityStore(Key privateKey, char[] privateKeyPassword, List<? extends Certificate> certificateChain)
@SafeVarargs public static <T extends Certificate> KeyStore createIdentityStore(Key privateKey, char[] privateKeyPassword, T... certificateChain)
@SafeVarargs public static <T extends Certificate> KeyStore createIdentityStore(Key privateKey, char[] privateKeyPassword, String alias, T... certificateChain)
public static KeyStore createKeyStore()
public static KeyStore createKeyStore(char[] keyStorePassword)
@SafeVarargs public static <T extends X509TrustManager> KeyStore createTrustStore(T... trustManagers)
@SafeVarargs public static <T extends Certificate> KeyStore createTrustStore(T... certificates)
public static <T extends Certificate> KeyStore createTrustStore(List<T> certificates)
public static int countAmountOfTrustMaterial(KeyStore keyStore)
public static int countAmountOfIdentityMaterial(KeyStore keyStore)
public static boolean containsTrustMaterial(KeyStore keyStore)
public static boolean containsIdentityMaterial(KeyStore keyStore)
Copyright © 2022. All rights reserved.