Package org.bouncycastle.asn1.cms
Class EncryptedContentInfo
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.cms.EncryptedContentInfo
- All Implemented Interfaces:
org.bouncycastle.asn1.ASN1Encodable
,org.bouncycastle.util.Encodable
public class EncryptedContentInfo
extends org.bouncycastle.asn1.ASN1Object
RFC 5652 EncryptedContentInfo object.
EncryptedContentInfo ::= SEQUENCE { contentType ContentType, contentEncryptionAlgorithm ContentEncryptionAlgorithmIdentifier, encryptedContent [0] IMPLICIT EncryptedContent OPTIONAL }
-
Constructor Summary
ConstructorDescriptionEncryptedContentInfo
(org.bouncycastle.asn1.ASN1ObjectIdentifier contentType, org.bouncycastle.asn1.x509.AlgorithmIdentifier contentEncryptionAlgorithm, org.bouncycastle.asn1.ASN1OctetString encryptedContent) -
Method Summary
Modifier and TypeMethodDescriptionorg.bouncycastle.asn1.x509.AlgorithmIdentifier
org.bouncycastle.asn1.ASN1ObjectIdentifier
org.bouncycastle.asn1.ASN1OctetString
static EncryptedContentInfo
getInstance
(Object obj) Return an EncryptedContentInfo object from the given object.org.bouncycastle.asn1.ASN1Primitive
Produce an object suitable for an ASN1OutputStream.Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Constructor Details
-
EncryptedContentInfo
public EncryptedContentInfo(org.bouncycastle.asn1.ASN1ObjectIdentifier contentType, org.bouncycastle.asn1.x509.AlgorithmIdentifier contentEncryptionAlgorithm, org.bouncycastle.asn1.ASN1OctetString encryptedContent)
-
-
Method Details
-
getInstance
Return an EncryptedContentInfo object from the given object.Accepted inputs:
- null → null
-
EncryptedContentInfo
object -
ASN1Sequence
input formats
- Parameters:
obj
- the object we want converted.- Throws:
IllegalArgumentException
- if the object cannot be converted.
-
getContentType
public org.bouncycastle.asn1.ASN1ObjectIdentifier getContentType() -
getContentEncryptionAlgorithm
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getContentEncryptionAlgorithm() -
getEncryptedContent
public org.bouncycastle.asn1.ASN1OctetString getEncryptedContent() -
toASN1Primitive
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()Produce an object suitable for an ASN1OutputStream.- Specified by:
toASN1Primitive
in interfaceorg.bouncycastle.asn1.ASN1Encodable
- Specified by:
toASN1Primitive
in classorg.bouncycastle.asn1.ASN1Object
-