Package org.forgerock.openig.util
Class KeyStoreUtil
- java.lang.Object
-
- org.forgerock.openig.util.KeyStoreUtil
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Key
getKey(KeyStore keyStore, String alias, String password)
static String
storeTypeFromKeyStore(String filename)
Get default keystore type based on the keystore filename.
-
-
-
Method Detail
-
getKey
public static Key getKey(KeyStore keyStore, String alias, String password)
- Parameters:
keyStore
- The storage facility for cryptographic keys and certificates to search for the given key.alias
- The alias associated with the key.password
- The password for recovering the key.- Returns:
- a
Key
or anIllegalArgumentException
if it fails. - Throws:
IllegalArgumentException
- If the key was not retrieved or if an exception occurred.
-
-