Interface ICrlStore
Interface for classes that can recover CRLs
Namespace: Lacuna.Pki.Stores
Assembly: Lacuna.Pki.dll
Syntax
public interface ICrlStore
Remarks
Classes implementing this interface are able to recover CRLs, for instance from a local storage or maybe from the web.
All recovery methods take 3 common parameters: (1) the URI where the CRL was published; (2) an "issuedBefore" date, which marks the maximum issuing date for the CRL and (3) the timeout for recovering the CRL.
Methods
GetExpiringAfter(Uri, Name, DateTimeOffset, DateTimeOffset, TimeSpan)
Recovers a CRL based on the publishing URI with a maximum issuing date and a minimum expiring date.
Declaration
Crl GetExpiringAfter(Uri uri, Name issuer, DateTimeOffset issuedBefore, DateTimeOffset expiringAfter, TimeSpan timeout)
Parameters
| Type | Name | Description |
|---|---|---|
| Uri | uri | |
| Name | issuer | |
| DateTimeOffset | issuedBefore | Maximum issuing date of the CRL. The returned CRL (if any) must have a ThisUpdate date value from before this parameter. |
| DateTimeOffset | expiringAfter | Minimum expiring date of the CRL. The returned CRL (if any) must have a NextUpdate date value after this parameter. |
| TimeSpan | timeout | The maximum time that the implementing class should take to return a CRL. If TimeSpan.Zero, the implementing class should only return a CRL if it does not depend on any network latency or other external factors. |
Returns
| Type | Description |
|---|---|
| Crl | A CRL that matches the requirements, or null if none can be found. |
GetIssuedAfter(Uri, Name, DateTimeOffset, DateTimeOffset, TimeSpan)
Recovers a CRL based on the publishing URI with a minimum and maximum issuing date.
Declaration
Crl GetIssuedAfter(Uri uri, Name issuer, DateTimeOffset issuedBefore, DateTimeOffset issuedAfter, TimeSpan timeout)
Parameters
| Type | Name | Description |
|---|---|---|
| Uri | uri | |
| Name | issuer | |
| DateTimeOffset | issuedBefore | Maximum issuing date of the CRL. The returned CRL (if any) must have a ThisUpdate date value from before this parameter. |
| DateTimeOffset | issuedAfter | Minimum issuing date of the CRL. The returned CRL (if any) must have a ThisUpdate date value after this parameter. |
| TimeSpan | timeout | The maximum time that the implementing class should take to return a CRL. If TimeSpan.Zero, the implementing class should only return a CRL if it does not depend on any network latency or other external factors. |
Returns
| Type | Description |
|---|---|
| Crl | A CRL that matches the requirements, or null if none can be found. |