FileDocCategorySizeDatePackage
EncryptedContentInfoParser.javaAPI DocBouncy Castle Crypto API 1.41 (Java 1.5)1671Wed Oct 01 10:55:30 BST 2008org.bouncycastle.sasn1.cms

EncryptedContentInfoParser

public class EncryptedContentInfoParser extends Object
EncryptedContentInfo ::= SEQUENCE {
contentType ContentType,
contentEncryptionAlgorithm ContentEncryptionAlgorithmIdentifier,
encryptedContent [0] IMPLICIT EncryptedContent OPTIONAL
}
deprecated
use corresponding class in org.bouncycastle.asn1.cms

Fields Summary
private org.bouncycastle.sasn1.Asn1ObjectIdentifier
_contentType
private org.bouncycastle.asn1.x509.AlgorithmIdentifier
_contentEncryptionAlgorithm
private org.bouncycastle.sasn1.Asn1TaggedObject
_encryptedContent
Constructors Summary
public EncryptedContentInfoParser(org.bouncycastle.sasn1.Asn1Sequence seq)

        _contentType = (Asn1ObjectIdentifier)seq.readObject();
        _contentEncryptionAlgorithm = AlgorithmIdentifier.getInstance(new ASN1InputStream(((DerSequence)seq.readObject()).getEncoded()).readObject());
        _encryptedContent = (Asn1TaggedObject)seq.readObject();
    
Methods Summary
public org.bouncycastle.asn1.x509.AlgorithmIdentifiergetContentEncryptionAlgorithm()

        return _contentEncryptionAlgorithm;
    
public org.bouncycastle.sasn1.Asn1ObjectIdentifiergetContentType()

        return _contentType;
    
public org.bouncycastle.sasn1.Asn1ObjectgetEncryptedContent(int tag)

        return _encryptedContent.getObject(tag, false);