public class KeystoreUtils extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
canRecoverKey(KeyStore theKeystore,
String theKeyAlias,
String theKeyPassword)
Returns
true if the key can be recovered using the given password |
static KeyStore |
loadKeystore(File theFile,
char[] thePassword) |
static KeyStore |
loadKeystore(String theFile,
String theKeystorePassword) |
static boolean |
validateKeyForSignatureSigning(KeyStore theKeystore,
String theKeyAlias,
String theKeyPassword) |
static boolean |
validateKeystoreForSignatureSigning(KeyStore theKs) |
static boolean |
validateKeystoreForSignatureVerifying(KeyStore theKs) |
static boolean |
validateKeystoreForTlsReceiving(KeyStore theKs) |
static boolean |
validateKeystoreForTlsSending(KeyStore theKs) |
public static KeyStore loadKeystore(File theFile, char[] thePassword) throws KeyStoreException, NoSuchAlgorithmException, CertificateException, FileNotFoundException, IOException
public static KeyStore loadKeystore(String theFile, String theKeystorePassword) throws KeyStoreException, NoSuchAlgorithmException, CertificateException, FileNotFoundException, IOException
public static boolean validateKeystoreForTlsReceiving(KeyStore theKs) throws KeyStoreException
KeyStoreException
public static boolean validateKeystoreForSignatureSigning(KeyStore theKs) throws KeyStoreException
KeyStoreException
public static boolean validateKeystoreForTlsSending(KeyStore theKs) throws KeyStoreException
KeyStoreException
public static boolean validateKeystoreForSignatureVerifying(KeyStore theKs) throws KeyStoreException
KeyStoreException
public static boolean validateKeyForSignatureSigning(KeyStore theKeystore, String theKeyAlias, String theKeyPassword)
public static boolean canRecoverKey(KeyStore theKeystore, String theKeyAlias, String theKeyPassword)
true
if the key can be recovered using the given passwordCopyright © 2012–2017 University Health Network. All rights reserved.