public TimeStampedData(DerIA5String dataUri, MetaData metaData, Asn1OctetString content, Evidence temporalEvidence) { this.version = new DerInteger(1); this.dataUri = dataUri; this.metaData = metaData; this.content = content; this.temporalEvidence = temporalEvidence; }
public virtual Evidence GetTemporalEvidence() { if (temporalEvidence == null) { temporalEvidence = Evidence.GetInstance(parser.ReadObject().ToAsn1Object()); } return temporalEvidence; }
private TimeStampedData(Asn1Sequence seq) { this.version = DerInteger.GetInstance(seq[0]); int index = 1; if (seq[index] is DerIA5String) { this.dataUri = DerIA5String.GetInstance(seq[index++]); } if (seq[index] is MetaData || seq[index] is Asn1Sequence) { this.metaData = MetaData.GetInstance(seq[index++]); } if (seq[index] is Asn1OctetString) { this.content = Asn1OctetString.GetInstance(seq[index++]); } this.temporalEvidence = Evidence.GetInstance(seq[index]); }