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

ContentInfoParser

public class ContentInfoParser extends Object
Produce an object suitable for an ASN1OutputStream.
ContentInfo ::= SEQUENCE {
contentType ContentType,
content
[0] EXPLICIT ANY DEFINED BY contentType OPTIONAL }
deprecated
use corresponding class in org.bouncycastle.asn1.cms

Fields Summary
private org.bouncycastle.sasn1.Asn1ObjectIdentifier
contentType
private org.bouncycastle.sasn1.Asn1TaggedObject
content
Constructors Summary
public ContentInfoParser(org.bouncycastle.sasn1.Asn1Sequence seq)

        contentType = (Asn1ObjectIdentifier)seq.readObject();
        content = (Asn1TaggedObject)seq.readObject();
    
Methods Summary
public org.bouncycastle.sasn1.Asn1ObjectgetContent(int tag)

        if (content != null)
        {
            return content.getObject(tag, true);
        }
        
        return null;
    
public org.bouncycastle.sasn1.Asn1ObjectIdentifiergetContentType()

        return contentType;