Pular para o conteúdo principal

PkiConfig

Namespace: Lacuna.Pki
Assembly: Lacuna.Pki
Class

public static class PkiConfig

Hierarquia: object → PkiConfig

Campos​

CAIssuersDownloadTimeout​

Time that the SDK waits when downloading a certificate from a AuthorityInformationAccess extension url.

public static TimeSpan CAIssuersDownloadTimeout

Retorno

TimeSpan


CrlDownloadTimeout​

Time that the SDK waits when downloading a CRL.

public static TimeSpan CrlDownloadTimeout

Retorno

TimeSpan


PdfHandlerFactory​

[Obsolete("There is no need for setting an external Pdf Handler")]
public static IPdfHandlerFactory PdfHandlerFactory

Retorno

IPdfHandlerFactory


PreemptiveDownloadMaxDelay​

The max TimeSpan that a preemptive download task shold wait to retry a download.

public static TimeSpan PreemptiveDownloadMaxDelay

Retorno

TimeSpan


SignatureFinisherRetryTimeout​

Time that the CadesSignatureFinisher waits by defaut when retrying to finish a signature

public static TimeSpan SignatureFinisherRetryTimeout

Retorno

TimeSpan


TimestampRequestTimeout​

Time that the SDK waits by default when requesting a timestamp.

public static TimeSpan TimestampRequestTimeout

Retorno

TimeSpan


TslDownloadTimeout​

Time that the SDK waits when downloading a Trusted Service List.

public static TimeSpan TslDownloadTimeout

Retorno

TimeSpan


Propriedades​

BinaryLicense​

public static byte[] BinaryLicense { get; }

Retorno

byte[]


DefaultPadesVisualLineSpacing​

PadesVisualText system default line spacing multiplier based on the font size.

public static double DefaultPadesVisualLineSpacing { get; set; }

Retorno

double


DefaultPdfMarkLineSpacing​

PdfMark system default line spacing multiplier based on the font size.

public static double DefaultPdfMarkLineSpacing { get; set; }

Retorno

double


LappEnabled​

Whether or not to enable Lapp. Lapp is an Artifact Provider Proxy for Pki, it enables PKI resources, such as CRLs and CA Certificates, to be requested through a single domain (*.lacunasoftware.com) which is then redirected to worldwide servers to execute the requests simultaneously. It simplifies network and infrastructures managing and creates high availability connections.

public static bool LappEnabled { get; set; }

Retorno

bool


LicensePath​

public static string LicensePath { get; }

Retorno

string


Logger​

Logger interface

public static ILogger Logger { get; set; }

Retorno

ILogger


MaxDelay​

[Obsolete("Use PreemptiveDownloadMaxDelay property instead")]
public static TimeSpan MaxDelay { get; set; }

Retorno

TimeSpan


PdfUseLastDuplicatedSignatureField​

When duplicated signature field name is present on PDF, sets whether or not to take the last entry of the duplicated field name. If false, the signature field name decoded will be the first one in offset increasing order.

public static bool PdfUseLastDuplicatedSignatureField { get; set; }

Retorno

bool


PreemptiveCrlDownload​

Enable or Disable the Preemptive CRL Download

public static bool PreemptiveCrlDownload { get; set; }

Retorno

bool


PrioritizeOcsp​

Whether or not to prioritize certificate revocation status verification through OCSP artifacts first, when supported, over CRL artifacts. If not set, first attempt is through CRL, second through OSCP.

public static bool PrioritizeOcsp { get; set; }

Retorno

bool


ReverseX509Names​

public static bool ReverseX509Names { get; set; }

Retorno

bool


TempPath​

Directory used by the SDK to store temporary files, such as the CRL cache files. By default, the current user's temporary folder is used. In order to change this, you can either set this property programatically or add an application setting in your application configuration file (web.config/app.config) with the key "LacunaPki.TempPath".

public static string TempPath { get; set; }

Retorno

string


TimeProvider​

Sets a custom time provider for returning the current DateTimeOffset. If not set, PKI SDK uses system's DateTimeOffset.Now as default.

public static IPkiTimeProvider TimeProvider { get; set; }

Retorno

IPkiTimeProvider


TimeZoneInfo​

Default timezone to use on DateTimeOffset validation strings

public static TimeZoneInfo TimeZoneInfo { get; set; }

Retorno

TimeZoneInfo


WebProxy​

Configures a web proxy for SDK web requests

public static IWebProxy WebProxy { get; set; }

Retorno

IWebProxy


Métodos​

LoadLicense(byte[])​

Loads the Lacuna Pki SDK license to enable its usage

public static void LoadLicense(byte[] content)

Parâmetros

NomeTipoDescrição
contentbyte[]License in binary format from given Base64 license

LoadLicense(string)​

Loads the Lacuna Pki SDK license to enable its usage

public static void LoadLicense(string path)

Parâmetros

NomeTipoDescrição
pathstringPath to Lacuna Pki license XML file

Membros herdados​

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

View as Markdown