Package org.bouncycastle.asn1.cms
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 Summary
ConstructorDescriptionEvidence
(TimeStampTokenEvidence tstEvidence) Evidence
(EvidenceRecord ersEvidence) -
Method Summary
Modifier and TypeMethodDescriptionstatic Evidence
getInstance
(Object obj) Return an Evidence object from the given object.static Evidence
getInstance
(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit) org.bouncycastle.asn1.ASN1Primitive
Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Constructor Details
-
Evidence
-
Evidence
-
-
Method Details
-
getInstance
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
-
getTstEvidence
-
getErsEvidence
-
toASN1Primitive
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()- Specified by:
toASN1Primitive
in interfaceorg.bouncycastle.asn1.ASN1Encodable
- Specified by:
toASN1Primitive
in classorg.bouncycastle.asn1.ASN1Object
-