public final class KeyStoreUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DUMMY_PASSWORD |
Modifier and Type | Method and Description |
---|---|
static KeyStore |
createIdentityStore(Key privateKey,
char[] privateKeyPassword,
Certificate... certificateChain) |
static KeyStore |
createIdentityStore(Key privateKey,
char[] privateKeyPassword,
String alias,
Certificate... 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() |
static void |
sanitizeKeyStores(List<KeyStoreHolder> keyStores) |
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, Certificate... certificateChain)
public static KeyStore createIdentityStore(Key privateKey, char[] privateKeyPassword, String alias, Certificate... 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 void sanitizeKeyStores(List<KeyStoreHolder> keyStores)
Copyright © 2021. All rights reserved.