loadEncryptedPkcs8
Loads an EncryptedPrivateKeyInfo, decrypting it through the passphrase retry loop when provider is given.
Parameters
der | DER bytes of the EncryptedPrivateKeyInfo. |
provider | Passphrase source, or null. |
Returns
The adopted signer.
Throws
SshKeyEncryptionException without a provider or for
unsupported PBES2 schemes; SshKeyPassphraseException when every passphrase attempt is rejected; SshKeyException for malformed structures.