Pular para o conteúdo principal

Dss

Namespace: Lacuna.Pki.Pades
Assembly: Lacuna.Pki
Class

A DSS (Document Security Store) PDF dictionary object with PKI validation artificats stores

public class Dss : ICertificateStore, ICrlStore

Hierarquia: objectDss

Construtores

Dss(IEnumerable<PKCertificate>, IEnumerable<Crl>, IEnumerable<Ocsp>)

public Dss(IEnumerable<PKCertificate> certificates, IEnumerable<Crl> trustedCrls, IEnumerable<Ocsp> trustedOcsps)

Parâmetros

NomeTipoDescrição
certificatesIEnumerable<PKCertificate>
trustedCrlsIEnumerable<Crl>
trustedOcspsIEnumerable<Ocsp>

Dss(IEnumerable<PKCertificate>, IEnumerable<Crl>)

public Dss(IEnumerable<PKCertificate> certificates, IEnumerable<Crl> trustedCrls)

Parâmetros

NomeTipoDescrição
certificatesIEnumerable<PKCertificate>
trustedCrlsIEnumerable<Crl>

Propriedades

Certificates

public IEnumerable<PKCertificate> Certificates { get; }

Retorno

IEnumerable<PKCertificate>


Crls

public IEnumerable<Crl> Crls { get; }

Retorno

IEnumerable<Crl>


Ocsps

public IEnumerable<Ocsp> Ocsps { get; }

Retorno

IEnumerable<Ocsp>


Métodos

GetCertificate(byte[])

Find a certificate by its Key Identifier

public PKCertificate GetCertificate(byte[] keyIdentifier)

Parâmetros

NomeTipoDescrição
keyIdentifierbyte[]

Retorno

PKCertificate


GetCertificate(Name, BigInteger)

Find a certificate by its Issuer Name and Serial Number

public PKCertificate GetCertificate(Name issuerName, BigInteger serialNumber)

Parâmetros

NomeTipoDescrição
issuerNameNameCertificate's issuer name
serialNumberBigIntegerCertificate's serial number

Retorno

PKCertificate


GetCertificates(Name)

Find one or more certificates by its Subject Name

public List<PKCertificate> GetCertificates(Name subjectName)

Parâmetros

NomeTipoDescrição
subjectNameName

Retorno

List<PKCertificate>


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

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

public 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.

public 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.


Membros herdados

ToString(), Equals(object), Equals(object, object), ReferenceEquals(object, object), GetHashCode(), GetType(), MemberwiseClone()