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

    Constructors
    Constructor
    Description
    EncryptedContentInfo(org.bouncycastle.asn1.ASN1ObjectIdentifier contentType, org.bouncycastle.asn1.x509.AlgorithmIdentifier contentEncryptionAlgorithm, org.bouncycastle.asn1.ASN1OctetString encryptedContent)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bouncycastle.asn1.x509.AlgorithmIdentifier
     
    org.bouncycastle.asn1.ASN1ObjectIdentifier
     
    org.bouncycastle.asn1.ASN1OctetString
     
    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

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EncryptedContentInfo

      public EncryptedContentInfo(org.bouncycastle.asn1.ASN1ObjectIdentifier contentType, org.bouncycastle.asn1.x509.AlgorithmIdentifier contentEncryptionAlgorithm, org.bouncycastle.asn1.ASN1OctetString encryptedContent)
  • Method Details

    • getInstance

      public static EncryptedContentInfo getInstance(Object obj)
      Return an EncryptedContentInfo object from the given object.

      Accepted inputs:

      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 interface org.bouncycastle.asn1.ASN1Encodable
      Specified by:
      toASN1Primitive in class org.bouncycastle.asn1.ASN1Object