public class PKCS8PrivateKeyDecoder extends AbstractPrivateKeyDecoder<org.bouncycastle.crypto.params.AsymmetricKeyParameter>
Constructor and Description |
---|
PKCS8PrivateKeyDecoder() |
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, tryConvertPem
protected byte[] decryptKey(byte[] encrypted, char[] password)
AbstractPrivateKeyDecoder
decryptKey
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)
AbstractPrivateKeyDecoder
decodeASN1
in class AbstractPrivateKeyDecoder<org.bouncycastle.crypto.params.AsymmetricKeyParameter>
encoded
- Encoded ASN.1 data.Copyright © 2003-2024 Virginia Tech. All Rights Reserved.