/// <summary> /// Constructor with an indication of the time-stamp type The default constructor for TimestampToken. /// </summary> public TimestampToken(TimeStampToken timeStamp, TimestampToken.TimestampType type) { this.timeStamp = timeStamp; timeStampType = type; }
/// <summary>Constructor with an indication of the time-stamp type The default constructor for TimestampToken. /// </summary> /// <remarks>Constructor with an indication of the time-stamp type The default constructor for TimestampToken. /// </remarks> public TimestampToken(TimeStampToken timeStamp, TimestampToken.TimestampType type ) { this.timeStamp = timeStamp; this.timeStampType = type; }
private IList <TimestampToken> GetTimestampList(DerObjectIdentifier attrType, TimestampToken.TimestampType timestampType) { if (signerInformation.UnsignedAttributes != null) { BcCms.Attribute timeStampAttr = signerInformation.UnsignedAttributes[attrType]; if (timeStampAttr == null) { return(null); } IList <TimestampToken> tstokens = new List <TimestampToken>(); foreach (Asn1Encodable value in timeStampAttr.AttrValues.ToArray()) { try { TimeStampToken token = new TimeStampToken(new CmsSignedData(value.GetDerEncoded())); tstokens.Add(new TimestampToken(token, timestampType)); } catch (Exception e) { throw new Exception("Parsing error", e); } } return(tstokens); } else { return(null); } }