Class EncryptedPrivateKeyInfo

java.lang.Object
org.gudy.bouncycastle.asn1.pkcs.EncryptedPrivateKeyInfo
All Implemented Interfaces:
DEREncodable, PKCSObjectIdentifiers

public class EncryptedPrivateKeyInfo extends Object implements PKCSObjectIdentifiers, DEREncodable
  • Field Details

  • Constructor Details

    • EncryptedPrivateKeyInfo

      public EncryptedPrivateKeyInfo(ASN1Sequence seq)
    • EncryptedPrivateKeyInfo

      public EncryptedPrivateKeyInfo(AlgorithmIdentifier algId, byte[] encoding)
  • Method Details

    • getEncryptionAlgorithm

      public AlgorithmIdentifier getEncryptionAlgorithm()
    • getEncryptedData

      public byte[] getEncryptedData()
    • getDERObject

      public DERObject getDERObject()
      Produce an object suitable for an ASN1OutputStream.
       EncryptedPrivateKeyInfo ::= SEQUENCE {
            encryptionAlgorithm AlgorithmIdentifier {{KeyEncryptionAlgorithms}},
            encryptedData EncryptedData
       }
      
       EncryptedData ::= OCTET STRING
      
       KeyEncryptionAlgorithms ALGORITHM-IDENTIFIER ::= {
                ... -- For local profiles
       }
       
      Specified by:
      getDERObject in interface DEREncodable