Class Evidence

java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.cms.Evidence
All Implemented Interfaces:
org.bouncycastle.asn1.ASN1Choice, org.bouncycastle.asn1.ASN1Encodable, org.bouncycastle.util.Encodable

public class Evidence extends org.bouncycastle.asn1.ASN1Object implements org.bouncycastle.asn1.ASN1Choice
RFC 5544: Binding Documents with Time-Stamps; Evidence object.

 Evidence ::= CHOICE {
     tstEvidence    [0] TimeStampTokenEvidence,   -- see RFC 3161
     ersEvidence    [1] EvidenceRecord,           -- see RFC 4998
     otherEvidence  [2] OtherEvidence
 }
 
  • Constructor Details

  • Method Details

    • getInstance

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

      Accepted inputs:

      • Evidence object
      • ASN1TaggedObject input formats with Evidence data inside
      Parameters:
      obj - the object we want converted.
      Throws:
      IllegalArgumentException - if the object cannot be converted.
    • getInstance

      public static Evidence getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit)
    • getTstEvidence

      public TimeStampTokenEvidence getTstEvidence()
    • getErsEvidence

      public EvidenceRecord getErsEvidence()
    • 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