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
ConstructorsConstructorDescriptionEvidence(TimeStampTokenEvidence tstEvidence) Evidence(EvidenceRecord ersEvidence) -
Method Summary
Modifier and TypeMethodDescriptionstatic EvidencegetInstance(Object obj) Return an Evidence object from the given object.static EvidencegetInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit) org.bouncycastle.asn1.ASN1PrimitiveMethods 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:
-
Evidenceobject -
ASN1TaggedObjectinput 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:
toASN1Primitivein interfaceorg.bouncycastle.asn1.ASN1Encodable- Specified by:
toASN1Primitivein classorg.bouncycastle.asn1.ASN1Object
-