Exemplo n.º 1
0
 /// <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;
 }
Exemplo n.º 2
0
		/// <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;
		}
Exemplo n.º 3
0
 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);
     }
 }