Class EncryptedPrivateKeyInfo

    • Constructor Detail

      • EncryptedPrivateKeyInfo

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

      • getEncryptedData

        public byte[] getEncryptedData()
      • toASN1Primitive

        public ASN1Primitive toASN1Primitive()
        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:
        toASN1Primitive in interface ASN1Encodable
        Specified by:
        toASN1Primitive in class ASN1Object
        Returns:
        a primitive representation of this object.