Class PadesPolicySpec
Inheritance
PadesPolicySpec
Assembly: Lacuna.Pki.dll
Syntax
public class PadesPolicySpec : ITrustArbitrator
Constructors
PadesPolicySpec()
Declaration
Properties
DigestAlgorithms
Declaration
public List<DigestAlgorithm> DigestAlgorithms { get; set; }
Property Value
SignatureAlgorithms
Declaration
public List<SignatureAlgorithm> SignatureAlgorithms { get; set; }
Property Value
SignerSpecs
Policies for PadesSigner signature creation or validation
Declaration
public SignerSpecs SignerSpecs { get; set; }
Property Value
SigningPeriodEnd
Declaration
public DateTimeOffset SigningPeriodEnd { get; set; }
Property Value
SigningPeriodStart
Declaration
public DateTimeOffset SigningPeriodStart { get; set; }
Property Value
StamperSpecs
Policies for timestamp creation and validation through PadesTimestamper
Declaration
public StamperSpecs StamperSpecs { get; set; }
Property Value
Methods
AddTrustArbitrator(ITrustArbitrator, Boolean)
Declaration
public void AddTrustArbitrator(ITrustArbitrator arbitrator, bool propagateToTimestampPolicies = false)
Parameters
AddTrustArbitrator(IEnumerable<ITrustArbitrator>)
Declaration
public void AddTrustArbitrator(IEnumerable<ITrustArbitrator> arbitrators)
Parameters
ClearTrustArbitrators(Boolean)
Declaration
public void ClearTrustArbitrators(bool propagateToTimestampPolicies = false)
Parameters
Type |
Name |
Description |
Boolean |
propagateToTimestampPolicies |
|
GetBasic(ITrustArbitrator)
Returns PAdES-BES signature policy
Declaration
public static PadesPolicySpec GetBasic(ITrustArbitrator arbitrator = null)
Parameters
Type |
Name |
Description |
ITrustArbitrator |
arbitrator |
The TrustArbitrator for certificates validation. If omitted, Windows roots are used.
|
Returns
GetCertificateStore()
Declaration
public ICertificateStore GetCertificateStore()
Returns
Implements
GetFailureLevel(ValidationItemTypes)
Declaration
public ValidationFailureLevels GetFailureLevel(ValidationItemTypes failureType)
Parameters
Returns
GetPadesT(ITrustArbitrator)
Declaration
public static PadesPolicySpec GetPadesT(ITrustArbitrator arbitrator = null)
Parameters
Returns
IsRootTrusted(PKCertificate, Nullable<DateTimeOffset>, out ValidationResults)
Declaration
public bool IsRootTrusted(PKCertificate root, DateTimeOffset? dateReference, out ValidationResults vr)
Parameters
Returns
Implements
SetFailureLevel(ValidationItemTypes, ValidationFailureLevels)
Declaration
public void SetFailureLevel(ValidationItemTypes failureType, ValidationFailureLevels level)
Parameters
Extension Methods