Modifier and Type | Method and Description |
---|---|
static Key |
getKey(KeyStore keyStore,
String alias,
String password)
|
public static Key getKey(KeyStore keyStore, String alias, String password)
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.Key
or an IllegalArgumentException
if it fails.IllegalArgumentException
- If the key was not retrieved or if an exception occurred.Copyright 2011-2017 ForgeRock AS.