Class PkiConfig
  
  
  
  
  
  
  Assembly: Lacuna.Pki.dll
  Syntax
  
    public static class PkiConfig
   
  Fields
  
  
  
  CAIssuersDownloadTimeout
  Time that the SDK waits when downloading a certificate from a AuthorityInformationAccess extension url.
Declaration
  
    public static TimeSpan CAIssuersDownloadTimeout
   
  Field Value
  
  
  
  CrlDownloadTimeout
  Time that the SDK waits when downloading a CRL.
Declaration
  
    public static TimeSpan CrlDownloadTimeout
   
  Field Value
  
  
  
  PdfHandlerFactory
  
  
  Declaration
  
    [Obsolete("There is no need for setting an external Pdf Handler")]
public static IPdfHandlerFactory PdfHandlerFactory
   
  Field Value
  
  
  
  PreemptiveDownloadMaxDelay
  The max TimeSpan that a preemptive download task shold wait to retry a download.
Declaration
  
    public static TimeSpan PreemptiveDownloadMaxDelay
   
  Field Value
  
  
  
  SignatureFinisherRetryTimeout
  Time that the CadesSignatureFinisher waits by defaut when retrying to finish a signature
Declaration
  
    public static TimeSpan SignatureFinisherRetryTimeout
   
  Field Value
  
  
  
  TimestampRequestTimeout
  Time that the  SDK waits by default when requesting a timestamp.
Declaration
  
    public static TimeSpan TimestampRequestTimeout
   
  Field Value
  
  
  
  TslDownloadTimeout
  Time that the SDK waits when downloading a Trusted Service List.
Declaration
  
    public static TimeSpan TslDownloadTimeout
   
  Field Value
  
  Properties
  
  
  
  
  BinaryLicense
  
  
  Declaration
  
    public static byte[] BinaryLicense { get; }
   
  Property Value
  
  
  
  
  DefaultPadesVisualLineSpacing
  PadesVisualText system default line spacing multiplier based on the font size.
Declaration
  
    public static double DefaultPadesVisualLineSpacing { get; set; }
   
  Property Value
  
  
  
  
  DefaultPdfMarkLineSpacing
  PdfMark system default line spacing multiplier based on the font size.
Declaration
  
    public static double DefaultPdfMarkLineSpacing { get; set; }
   
  Property Value
  
  
  
  
  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.
Declaration
  
    public static bool LappEnabled { get; set; }
   
  Property Value
  
  
  
  
  LicensePath
  
  
  Declaration
  
    public static string LicensePath { get; }
   
  Property Value
  
  
  
  
  Logger
  
  
  Declaration
  
    public static ILogger Logger { get; set; }
   
  Property Value
  
  
  
  
  MaxDelay
  
  
  Declaration
  
    [Obsolete("Use PreemptiveDownloadMaxDelay property instead")]
public static TimeSpan MaxDelay { get; set; }
   
  Property Value
  
  
  
  
  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.
Declaration
  
    public static bool PdfUseLastDuplicatedSignatureField { get; set; }
   
  Property Value
  
  
  
  
  PreemptiveCrlDownload
  Enable or Disable the Preemptive CRL Download
Declaration
  
    public static bool PreemptiveCrlDownload { get; set; }
   
  Property Value
  
  
  
  
  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.
Declaration
  
    public static bool PrioritizeOcsp { get; set; }
   
  Property Value
  
  
  
  
  ReverseX509Names
  
  
  Declaration
  
    public static bool ReverseX509Names { get; set; }
   
  Property Value
  
  
  
  
  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".
Declaration
  
    public static string TempPath { get; set; }
   
  Property Value
  
  
  
  
  TimeProvider
  Sets a custom time provider for returning the current DateTimeOffset.
If not set, PKI SDK uses system's DateTimeOffset.Now as default.
Declaration
  
    public static IPkiTimeProvider TimeProvider { get; set; }
   
  Property Value
  
  
  
  
  TimeZoneInfo
  Default timezone to use on DateTimeOffset validation strings
Declaration
  
    public static TimeZoneInfo TimeZoneInfo { get; set; }
   
  Property Value
  
  
  
  
  WebProxy
  Configures a web proxy for SDK web requests
Declaration
  
    public static IWebProxy WebProxy { get; set; }
   
  Property Value
  
  Methods
  
  
  
  
  LoadLicense(Byte[])
  Loads the Lacuna Pki SDK license to enable its usage
Declaration
  
    public static void LoadLicense(byte[] content)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | Byte[] | content | License in binary format from given Base64 license | 
    
  
  
  
  
  LoadLicense(String)
  Loads the Lacuna Pki SDK license to enable its usage
Declaration
  
    public static void LoadLicense(string path)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | String | path | Path to Lacuna Pki license XML file |