Class ArchiveTimeStampSequence

java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.tsp.ArchiveTimeStampSequence
All Implemented Interfaces:
org.bouncycastle.asn1.ASN1Encodable, org.bouncycastle.util.Encodable

public class ArchiveTimeStampSequence extends org.bouncycastle.asn1.ASN1Object
Implementation of ArchiveTimeStampSequence type, as defined in RFC4998.

An ArchiveTimeStampSequence corresponds to a SEQUENCE OF ArchiveTimeStampChains and has the following ASN.1 Syntax:

ArchiveTimeStampSequence ::= SEQUENCE OF ArchiveTimeStampChain

  • Constructor Details

    • ArchiveTimeStampSequence

      public ArchiveTimeStampSequence(ArchiveTimeStampChain archiveTimeStampChain)
    • ArchiveTimeStampSequence

      public ArchiveTimeStampSequence(ArchiveTimeStampChain[] archiveTimeStampChains)
  • Method Details

    • getInstance

      public static ArchiveTimeStampSequence getInstance(Object obj)
      Return an ArchiveTimestampSequence from the given object.
      Parameters:
      obj - the object we want converted.
      Returns:
      an ArchiveTimeStampSequence instance, or null.
      Throws:
      IllegalArgumentException - if the object cannot be converted.
    • getArchiveTimeStampChains

      public ArchiveTimeStampChain[] getArchiveTimeStampChains()
      Returns the sequence of ArchiveTimeStamp chains that compose the ArchiveTimeStamp sequence.
      Returns:
      the ASN1Sequence containing the ArchiveTimeStamp chains.
    • size

      public int size()
    • append

      Adds an ArchiveTimeStampChain to the ArchiveTimeStamp sequence.
      Parameters:
      chain - the ArchiveTimeStampChain to add
      Returns:
      returns the modified sequence.
    • toASN1Primitive

      public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
      Specified by:
      toASN1Primitive in interface org.bouncycastle.asn1.ASN1Encodable
      Specified by:
      toASN1Primitive in class org.bouncycastle.asn1.ASN1Object