blob: 0386ecb0250b400057c5b9d2d9e89ec6791580bb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
using System;
namespace Org.BouncyCastle.Asn1
{
public class DerGeneralizedTime
: Asn1GeneralizedTime
{
public DerGeneralizedTime(byte[] time)
: base(time)
{
}
public DerGeneralizedTime(DateTime time)
: base(time)
{
}
public DerGeneralizedTime(string time)
: base(time)
{
}
internal override IAsn1Encoding GetEncoding(int encoding)
{
return new PrimitiveEncoding(Asn1Tags.Universal, Asn1Tags.GeneralizedTime, GetDerTime());
}
internal override IAsn1Encoding GetEncodingImplicit(int encoding, int tagClass, int tagNo)
{
return new PrimitiveEncoding(tagClass, tagNo, GetDerTime());
}
}
}
|