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 KeygetKey(KeyStore keyStore, String alias, String password)static StringstoreTypeFromKeyStore(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
Keyor anIllegalArgumentExceptionif it fails. - Throws:
IllegalArgumentException- If the key was not retrieved or if an exception occurred.
-
-