Package org.forgerock.openig.util
Class KeyStoreUtil
java.lang.Object
org.forgerock.openig.util.KeyStoreUtil
Utility class to retrieve private keys from 
KeyStore.- 
Method Summary
 
- 
Method Details
- 
getKey
- 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.
 - 
storeTypeFromKeyStore
Get default keystore type based on the keystore filename.- Parameters:
 filename- name of the keystore file with extension- Returns:
 - default store type for the given filename or "PKCS12" if no default available.
 
 
 -