blob: 44dd63a471a1ebcd881cee4c60c74d2d7262fcfa (
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
|
using System;
using Org.BouncyCastle.Asn1.Cms;
using Org.BouncyCastle.Utilities.Collections;
using Org.BouncyCastle.X509;
namespace Org.BouncyCastle.Cms
{
public class OriginatorInformation
{
private readonly OriginatorInfo originatorInfo;
public OriginatorInformation(OriginatorInfo originatorInfo)
{
this.originatorInfo = originatorInfo;
}
/**
* Return the certificates stored in the underlying OriginatorInfo object.
*
* @return a Store of X509CertificateHolder objects.
*/
public virtual IStore<X509Certificate> GetCertificates()
{
return CmsSignedHelper.GetCertificates(originatorInfo.Certificates);
}
/**
* Return the CRLs stored in the underlying OriginatorInfo object.
*
* @return a Store of X509CRLHolder objects.
*/
public virtual IStore<X509Crl> GetCrls()
{
return CmsSignedHelper.GetCrls(originatorInfo.Crls);
}
/**
* Return the underlying ASN.1 object defining this SignerInformation object.
*
* @return a OriginatorInfo.
*/
public virtual OriginatorInfo ToAsn1Structure()
{
return originatorInfo;
}
}
}
|