Pular para o conteúdo principal

ICrlStore

Namespace: Lacuna.Pki.Stores
Assembly: Lacuna.Pki
Interface

Interface for classes that can recover CRLs

public interface ICrlStore

Comentários

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.

Métodos

GetExpiringAfter(Uri, Name, DateTimeOffset, DateTimeOffset, TimeSpan)

Recovers a CRL based on the publishing URI with a maximum issuing date and a minimum expiring date.

Crl GetExpiringAfter(Uri uri, Name issuer, DateTimeOffset issuedBefore, DateTimeOffset expiringAfter, TimeSpan timeout)

Parâmetros

NomeTipoDescrição
uriUri
issuerName
issuedBeforeDateTimeOffsetMaximum issuing date of the CRL. The returned CRL (if any) must have a ThisUpdate date value from before this parameter.
expiringAfterDateTimeOffsetMinimum expiring date of the CRL. The returned CRL (if any) must have a NextUpdate date value after this parameter.
timeoutTimeSpanThe 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.

Retorno

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.

Crl GetIssuedAfter(Uri uri, Name issuer, DateTimeOffset issuedBefore, DateTimeOffset issuedAfter, TimeSpan timeout)

Parâmetros

NomeTipoDescrição
uriUri
issuerName
issuedBeforeDateTimeOffsetMaximum issuing date of the CRL. The returned CRL (if any) must have a ThisUpdate date value from before this parameter.
issuedAfterDateTimeOffsetMinimum issuing date of the CRL. The returned CRL (if any) must have a ThisUpdate date value after this parameter.
timeoutTimeSpanThe 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.

Retorno

Crl — A CRL that matches the requirements, or null if none can be found.