blob: 33e502c6749eecfe0789f9bce0e05a7cc4f5e432 (
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
34
35
36
37
38
39
40
|
using System;
namespace Org.BouncyCastle.Asn1
{
public class DerUtcTime
: Asn1UtcTime
{
public DerUtcTime(string timeString)
: base(timeString)
{
}
[Obsolete("Use `DerUtcTime(DateTime, int)' instead")]
public DerUtcTime(DateTime dateTime)
: base(dateTime)
{
}
public DerUtcTime(DateTime dateTime, int twoDigitYearMax)
: base(dateTime, twoDigitYearMax)
{
}
internal DerUtcTime(byte[] contents)
: base(contents)
{
}
internal override IAsn1Encoding GetEncoding(int encoding)
{
return new PrimitiveEncoding(Asn1Tags.Universal, Asn1Tags.UtcTime,
GetContents(Asn1OutputStream.EncodingDer));
}
internal override IAsn1Encoding GetEncodingImplicit(int encoding, int tagClass, int tagNo)
{
return new PrimitiveEncoding(tagClass, tagNo, GetContents(Asn1OutputStream.EncodingDer));
}
}
}
|