Class RPKIContentInfo

  • All Implemented Interfaces:
    org.bouncycastle.asn1.ASN1Encodable, org.bouncycastle.asn1.cms.CMSObjectIdentifiers, org.bouncycastle.util.Encodable

    public class RPKIContentInfo
    extends org.bouncycastle.asn1.cms.ContentInfo
    RFC 5652 ContentInfo, and RFC 5652 EncapsulatedContentInfo objects.
     ContentInfo ::= SEQUENCE {
         contentType ContentType,
         content [0] EXPLICIT ANY DEFINED BY contentType OPTIONAL
     }
    
     EncapsulatedContentInfo ::= SEQUENCE {
         eContentType ContentType,
         eContent [0] EXPLICIT OCTET STRING OPTIONAL
     }
     
    • Field Summary

      • Fields inherited from interface org.bouncycastle.asn1.cms.CMSObjectIdentifiers

        authenticatedData, authEnvelopedData, compressedData, data, digestedData, encryptedData, envelopedData, id_alg, id_ecdsa_with_shake128, id_ecdsa_with_shake256, id_ori, id_ori_kem, id_ri, id_ri_ocsp_response, id_ri_scvp, id_RSASSA_PSS_SHAKE128, id_RSASSA_PSS_SHAKE256, signedAndEnvelopedData, signedData, timestampedData, zlibCompress
    • Constructor Summary

      Constructors 
      Constructor Description
      RPKIContentInfo​(org.bouncycastle.asn1.ASN1ObjectIdentifier contentType, org.bouncycastle.asn1.ASN1Encodable content)  
    • Constructor Detail

      • RPKIContentInfo

        public RPKIContentInfo​(org.bouncycastle.asn1.ASN1ObjectIdentifier contentType,
                               org.bouncycastle.asn1.ASN1Encodable content)
    • Method Detail

      • getInstance

        public static RPKIContentInfo getInstance​(Object obj)
        Return an ContentInfo object from the given object.

        Accepted inputs:

        • null → null
        • RPKIContentInfo object
        • ASN1Sequence input formats with ContentInfo structure inside
        Parameters:
        obj - the object we want converted.
        Throws:
        IllegalArgumentException - if the object cannot be converted.
      • getInstance

        public static RPKIContentInfo getInstance​(org.bouncycastle.asn1.ASN1TaggedObject obj,
                                                  boolean explicit)
      • getContentType

        public org.bouncycastle.asn1.ASN1ObjectIdentifier getContentType()
        Overrides:
        getContentType in class org.bouncycastle.asn1.cms.ContentInfo
      • getContent

        public org.bouncycastle.asn1.ASN1Encodable getContent()
        Overrides:
        getContent in class org.bouncycastle.asn1.cms.ContentInfo
      • toASN1Primitive

        public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
        Produce an object suitable for an ASN1OutputStream.
        Specified by:
        toASN1Primitive in interface org.bouncycastle.asn1.ASN1Encodable
        Overrides:
        toASN1Primitive in class org.bouncycastle.asn1.cms.ContentInfo