培训考核三期,新版培训,网页版培训登录器
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

69 lines
1.6 KiB

#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
#pragma warning disable
using System;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
{
public class TimeStampTokenEvidence
: Asn1Encodable
{
private TimeStampAndCrl[] timeStampAndCrls;
public TimeStampTokenEvidence(TimeStampAndCrl[] timeStampAndCrls)
{
this.timeStampAndCrls = timeStampAndCrls;
}
public TimeStampTokenEvidence(TimeStampAndCrl timeStampAndCrl)
{
this.timeStampAndCrls = new TimeStampAndCrl[]{ timeStampAndCrl };
}
private TimeStampTokenEvidence(Asn1Sequence seq)
{
this.timeStampAndCrls = new TimeStampAndCrl[seq.Count];
int count = 0;
foreach (Asn1Encodable ae in seq)
{
this.timeStampAndCrls[count++] = TimeStampAndCrl.GetInstance(ae.ToAsn1Object());
}
}
public static TimeStampTokenEvidence GetInstance(Asn1TaggedObject tagged, bool isExplicit)
{
return GetInstance(Asn1Sequence.GetInstance(tagged, isExplicit));
}
public static TimeStampTokenEvidence GetInstance(object obj)
{
if (obj is TimeStampTokenEvidence)
return (TimeStampTokenEvidence)obj;
if (obj != null)
return new TimeStampTokenEvidence(Asn1Sequence.GetInstance(obj));
return null;
}
public virtual TimeStampAndCrl[] ToTimeStampAndCrlArray()
{
return (TimeStampAndCrl[])timeStampAndCrls.Clone();
}
/**
* <pre>
* TimeStampTokenEvidence ::=
* SEQUENCE SIZE(1..MAX) OF TimeStampAndCrl
* </pre>
* @return
*/
public override Asn1Object ToAsn1Object()
{
return new DerSequence(timeStampAndCrls);
}
}
}
#pragma warning restore
#endif