Package org.bouncycastle.asn1.cms
Class EncryptedContentInfo
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.cms.EncryptedContentInfo
- All Implemented Interfaces:
ASN1Encodable
,Encodable
RFC 5652 EncryptedContentInfo object.
EncryptedContentInfo ::= SEQUENCE { contentType ContentType, contentEncryptionAlgorithm ContentEncryptionAlgorithmIdentifier, encryptedContent [0] IMPLICIT EncryptedContent OPTIONAL }
-
Constructor Summary
ConstructorsConstructorDescriptionEncryptedContentInfo
(ASN1ObjectIdentifier contentType, AlgorithmIdentifier contentEncryptionAlgorithm, ASN1OctetString encryptedContent) -
Method Summary
Modifier and TypeMethodDescriptionstatic EncryptedContentInfo
getInstance
(Object obj) Return an EncryptedContentInfo object from the given object.Produce an object suitable for an ASN1OutputStream.Methods inherited from class org.bouncycastle.asn1.ASN1Object
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Constructor Details
-
EncryptedContentInfo
public EncryptedContentInfo(ASN1ObjectIdentifier contentType, AlgorithmIdentifier contentEncryptionAlgorithm, 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
-
getContentEncryptionAlgorithm
-
getEncryptedContent
-
toASN1Primitive
Produce an object suitable for an ASN1OutputStream.- Specified by:
toASN1Primitive
in interfaceASN1Encodable
- Specified by:
toASN1Primitive
in classASN1Object
- Returns:
- a primitive representation of this object.
-