public class OpenSSLPrivateKeyDecoder extends AbstractPrivateKeyDecoder<org.bouncycastle.crypto.params.AsymmetricKeyParameter>
| Constructor and Description |
|---|
OpenSSLPrivateKeyDecoder() |
| Modifier and Type | Method and Description |
|---|---|
protected org.bouncycastle.crypto.params.AsymmetricKeyParameter |
decodeASN1(byte[] encoded)
Decodes the given raw ASN.1 encoded data into a private key of the type supported by this class.
|
protected byte[] |
decryptKey(byte[] encrypted,
char[] password)
Decrypts an encrypted key in either PKCS#8 or OpenSSL "traditional" format.
|
decode, tryConvertPemprotected byte[] decryptKey(byte[] encrypted,
char[] password)
AbstractPrivateKeyDecoderdecryptKey in class AbstractPrivateKeyDecoder<org.bouncycastle.crypto.params.AsymmetricKeyParameter>encrypted - Encoded encrypted key data.password - Password to decrypt key.protected org.bouncycastle.crypto.params.AsymmetricKeyParameter decodeASN1(byte[] encoded)
AbstractPrivateKeyDecoderdecodeASN1 in class AbstractPrivateKeyDecoder<org.bouncycastle.crypto.params.AsymmetricKeyParameter>encoded - Encoded ASN.1 data.Copyright © 2003-2024 Virginia Tech. All Rights Reserved.