Package org.bouncycastle.pkcs
Class PKCS8EncryptedPrivateKeyInfo
java.lang.Object
org.bouncycastle.pkcs.PKCS8EncryptedPrivateKeyInfo
Holding class for a PKCS#8 EncryptedPrivateKeyInfo structure.
-
Constructor Summary
ConstructorDescriptionPKCS8EncryptedPrivateKeyInfo
(byte[] encryptedPrivateKeyInfo) PKCS8EncryptedPrivateKeyInfo
(org.bouncycastle.asn1.pkcs.EncryptedPrivateKeyInfo encryptedPrivateKeyInfo) -
Method Summary
Modifier and TypeMethodDescriptionorg.bouncycastle.asn1.pkcs.PrivateKeyInfo
decryptPrivateKeyInfo
(InputDecryptorProvider inputDecryptorProvider) byte[]
byte[]
org.bouncycastle.asn1.x509.AlgorithmIdentifier
org.bouncycastle.asn1.pkcs.EncryptedPrivateKeyInfo
-
Constructor Details
-
PKCS8EncryptedPrivateKeyInfo
public PKCS8EncryptedPrivateKeyInfo(org.bouncycastle.asn1.pkcs.EncryptedPrivateKeyInfo encryptedPrivateKeyInfo) -
PKCS8EncryptedPrivateKeyInfo
- Throws:
IOException
-
-
Method Details
-
getEncryptionAlgorithm
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getEncryptionAlgorithm() -
getEncryptedData
public byte[] getEncryptedData() -
toASN1Structure
public org.bouncycastle.asn1.pkcs.EncryptedPrivateKeyInfo toASN1Structure() -
getEncoded
- Throws:
IOException
-
decryptPrivateKeyInfo
public org.bouncycastle.asn1.pkcs.PrivateKeyInfo decryptPrivateKeyInfo(InputDecryptorProvider inputDecryptorProvider) throws PKCSException - Throws:
PKCSException
-