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

public Class EncryptedContentInfo

extends ASN1Object
Class Inheritance
Imports
org.bouncycastle.asn1.ASN1EncodableVector, .ASN1Object, .ASN1ObjectIdentifier, .ASN1OctetString, .ASN1Primitive, .ASN1Sequence, .ASN1TaggedObject, .BERSequence, .BERTaggedObject, org.bouncycastle.asn1.x509.AlgorithmIdentifier

RFC 5652 EncryptedContentInfo object.
EncryptedContentInfo ::= SEQUENCE {
    contentType ContentType,
    contentEncryptionAlgorithm ContentEncryptionAlgorithmIdentifier,
    encryptedContent [0] IMPLICIT EncryptedContent OPTIONAL 
}

Field Summary

Modifier and TypeField and Description
private AlgorithmIdentifier
private ASN1ObjectIdentifier
private ASN1OctetString

Constructor Summary

AccessConstructor and Description
public
EncryptedContentInfo(ASN1ObjectIdentifier contentType, AlgorithmIdentifier contentEncryptionAlgorithm, ASN1OctetString encryptedContent)

private

Method Summary

Modifier and TypeMethod and Description
public AlgorithmIdentifier
public ASN1ObjectIdentifier
public ASN1OctetString
public static EncryptedContentInfo
getInstance(Object
the object we want converted.
obj
)

Return an EncryptedContentInfo object from the given object.

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:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

contentEncryptionAlgorithmback to summary
private AlgorithmIdentifier contentEncryptionAlgorithm
contentTypeback to summary
private ASN1ObjectIdentifier contentType
encryptedContentback to summary
private ASN1OctetString encryptedContent

Constructor Detail

EncryptedContentInfoback to summary
public EncryptedContentInfo(ASN1ObjectIdentifier contentType, AlgorithmIdentifier contentEncryptionAlgorithm, ASN1OctetString encryptedContent)
EncryptedContentInfoback to summary
private EncryptedContentInfo(ASN1Sequence seq)

Method Detail

getContentEncryptionAlgorithmback to summary
public AlgorithmIdentifier getContentEncryptionAlgorithm()
getContentTypeback to summary
public ASN1ObjectIdentifier getContentType()
getEncryptedContentback to summary
public ASN1OctetString getEncryptedContent()
getInstanceback to summary
public static EncryptedContentInfo getInstance(Object obj)

Return an EncryptedContentInfo object from the given object.

Accepted inputs:

Parameters
obj:Object

the object we want converted.

Exceptions
IllegalArgumentException:
if the object cannot be converted.
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.