blob: e132c45b12164b128929cd429cbf001fc56a98cb (
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
41
42
43
44
45
46
47
48
49
50
51
|
using System;
using Org.BouncyCastle.Asn1;
using Org.BouncyCastle.Asn1.Ocsp;
using Org.BouncyCastle.Asn1.X509;
using Org.BouncyCastle.X509;
namespace Org.BouncyCastle.Ocsp
{
public class RespData
: X509ExtensionBase
{
internal readonly ResponseData data;
public RespData(
ResponseData data)
{
this.data = data;
}
public int Version
{
get { return data.Version.IntValueExact + 1; }
}
public RespID GetResponderId()
{
return new RespID(data.ResponderID);
}
public DateTime ProducedAt
{
get { return data.ProducedAt.ToDateTime(); }
}
public SingleResp[] GetResponses()
{
return data.Responses.MapElements(element => new SingleResp(SingleResponse.GetInstance(element)));
}
public X509Extensions ResponseExtensions
{
get { return data.ResponseExtensions; }
}
protected override X509Extensions GetX509Extensions()
{
return ResponseExtensions;
}
}
}
|