Class RpkiSignedObjectParser

    • Field Detail

      • contentType

        protected org.bouncycastle.asn1.ASN1ObjectIdentifier contentType
    • Constructor Detail

      • RpkiSignedObjectParser

        public RpkiSignedObjectParser()
    • Method Detail

      • parse

        public final void parse​(String location,
                                byte[] encoded)
      • getEncoded

        protected byte[] getEncoded()
      • getContentType

        protected org.bouncycastle.asn1.ASN1ObjectIdentifier getContentType()
      • getSigningTime

        protected org.joda.time.DateTime getSigningTime()
      • decodeAsn1Content

        public void decodeAsn1Content​(org.bouncycastle.asn1.ASN1Encodable content)
      • parseContent

        protected void parseContent​(org.bouncycastle.cms.CMSSignedDataParser sp)
      • getTaggedVersion

        protected static Optional<BigInteger> getTaggedVersion​(int tagNo,
                                                               org.bouncycastle.asn1.ASN1Sequence seq)
                                                        throws IllegalAsn1StructureException
        Parse the version field in a signed object. By convention, the version is the first field in the sequence, and it is explicitly tagged.
        Parameters:
        tagNo - tag number
        seq - sequence of content
        Returns:
        version number if present, empty otherwise.
        Throws:
        IllegalAsn1StructureException