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 EncryptedContentInfogetInstance(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
encodeTo, encodeTo, 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
-
EncryptedContentInfoobject -
ASN1Sequenceinput 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:
toASN1Primitivein interfaceASN1Encodable- Specified by:
toASN1Primitivein classASN1Object- Returns:
- a primitive representation of this object.
-