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: object → Dss
Construtores
Dss(IEnumerable<PKCertificate>, IEnumerable<Crl>, IEnumerable<Ocsp>)
public Dss(IEnumerable<PKCertificate> certificates, IEnumerable<Crl> trustedCrls, IEnumerable<Ocsp> trustedOcsps)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
certificates | IEnumerable<PKCertificate> | |
trustedCrls | IEnumerable<Crl> | |
trustedOcsps | IEnumerable<Ocsp> |
Dss(IEnumerable<PKCertificate>, IEnumerable<Crl>)
public Dss(IEnumerable<PKCertificate> certificates, IEnumerable<Crl> trustedCrls)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
certificates | IEnumerable<PKCertificate> | |
trustedCrls | IEnumerable<Crl> |
Propriedades
Certificates
public IEnumerable<PKCertificate> Certificates { get; }
Retorno
Crls
public IEnumerable<Crl> Crls { get; }
Retorno
Ocsps
public IEnumerable<Ocsp> Ocsps { get; }
Retorno
Métodos
GetCertificate(byte[])
Find a certificate by its Key Identifier
public PKCertificate GetCertificate(byte[] keyIdentifier)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
keyIdentifier | byte[] |
Retorno
GetCertificate(Name, BigInteger)
Find a certificate by its Issuer Name and Serial Number
public PKCertificate GetCertificate(Name issuerName, BigInteger serialNumber)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
issuerName | Name | Certificate's issuer name |
serialNumber | BigInteger | Certificate's serial number |
Retorno
GetCertificates(Name)
Find one or more certificates by its Subject Name
public List<PKCertificate> GetCertificates(Name subjectName)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
subjectName | Name |
Retorno
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
| Nome | Tipo | Descrição |
|---|---|---|
uri | Uri | |
issuer | Name | |
issuedBefore | DateTimeOffset | Maximum issuing date of the CRL. The returned CRL (if any) must have a ThisUpdate date value from before this parameter. |
expiringAfter | DateTimeOffset | Minimum expiring date of the CRL. The returned CRL (if any) must have a NextUpdate date value after this parameter. |
timeout | TimeSpan | 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. |
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
| Nome | Tipo | Descrição |
|---|---|---|
uri | Uri | |
issuer | Name | |
issuedBefore | DateTimeOffset | Maximum issuing date of the CRL. The returned CRL (if any) must have a ThisUpdate date value from before this parameter. |
issuedAfter | DateTimeOffset | Minimum issuing date of the CRL. The returned CRL (if any) must have a ThisUpdate date value after this parameter. |
timeout | TimeSpan | 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. |
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()