/// <summary>The default constructor for TimestampVerificationResult.</summary> /// <remarks>The default constructor for TimestampVerificationResult.</remarks> public TimestampVerificationResult(TimestampToken token) { if (token != null && token.GetTimeStamp() != null) { IEnumerator signers = token.GetTimeStamp().ToCmsSignedData().GetSignerInfos ().GetSigners().GetEnumerator(); signers.MoveNext(); signatureAlgorithm = ((SignerInformation)signers.Current).EncryptionAlgOid; serialNumber = token.GetTimeStamp().TimeStampInfo.SerialNumber.ToString(); creationTime = token.GetTimeStamp().TimeStampInfo.GenTime; issuerName = token.GetSignerSubjectName().ToString(); } }
/// <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; }