Top Description Fields Constructors Methods
org.bouncycastle.asn1.cms

public Class ContentInfo

extends ASN1Object
implements CMSObjectIdentifiers
Class Inheritance
All Implemented Interfaces
org.bouncycastle.asn1.cms.CMSObjectIdentifiers
Imports
org.bouncycastle.asn1.ASN1Encodable, .ASN1EncodableVector, .ASN1Object, .ASN1ObjectIdentifier, .ASN1Primitive, .ASN1Sequence, .ASN1TaggedObject, .BERSequence, .BERTaggedObject

RFC 5652 ContentInfo, and RFC 5652 EncapsulatedContentInfo objects.
ContentInfo ::= SEQUENCE {
    contentType ContentType,
    content [0] EXPLICIT ANY DEFINED BY contentType OPTIONAL
}

EncapsulatedContentInfo ::= SEQUENCE {
    eContentType ContentType,
    eContent [0] EXPLICIT OCTET STRING OPTIONAL
}

Field Summary

Modifier and TypeField and Description
private ASN1Encodable
private ASN1ObjectIdentifier

Constructor Summary

AccessConstructor and Description
private
public

Method Summary

Modifier and TypeMethod and Description
public ASN1Encodable
public ASN1ObjectIdentifier
public static ContentInfo
getInstance(Object
the object we want converted.
obj
)

Return an ContentInfo object from the given object.

public static ContentInfo
getInstance(ASN1TaggedObject obj, boolean explicit)

public ASN1Primitive
toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Produce an object suitable for an ASN1OutputStream.
Inherited from org.bouncycastle.asn1.ASN1Object:
equalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

contentback to summary
private ASN1Encodable content
contentTypeback to summary
private ASN1ObjectIdentifier contentType

Constructor Detail

ContentInfoback to summary
private ContentInfo(ASN1Sequence seq)
ContentInfoback to summary
public ContentInfo(ASN1ObjectIdentifier contentType, ASN1Encodable content)

Method Detail

getContentback to summary
public ASN1Encodable getContent()
getContentTypeback to summary
public ASN1ObjectIdentifier getContentType()
getInstanceback to summary
public static ContentInfo getInstance(Object obj)

Return an ContentInfo object from the given object.

Accepted inputs:

Parameters
obj:Object

the object we want converted.

Exceptions
IllegalArgumentException:
if the object cannot be converted.
getInstanceback to summary
public static ContentInfo getInstance(ASN1TaggedObject obj, boolean explicit)
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Produce an object suitable for an ASN1OutputStream.

Returns:ASN1Primitive

Doc from org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

a primitive representation of this object.