Class CadesPolicySpec
Class for setting Cades signature policy specifications
Inheritance
CadesPolicySpec
Assembly: Lacuna.Pki.dll
Syntax
public class CadesPolicySpec : ITrustArbitrator
Constructors
CadesPolicySpec()
Declaration
Properties
AttributeGeneration
Declaration
public CadesPolicySpec.AttributeGenerationSpec AttributeGeneration { get; set; }
Property Value
AttributeValidation
Declaration
public CadesPolicySpec.AttributeValidationSpec AttributeValidation { get; set; }
Property Value
CadesCTimestampPolicy
Declaration
public CadesPolicySpec CadesCTimestampPolicy { get; set; }
Property Value
CurrentArchiveTimestampPolicy
Declaration
public CadesPolicySpec CurrentArchiveTimestampPolicy { get; set; }
Property Value
DigestAlgorithms
Declaration
public List<DigestAlgorithm> DigestAlgorithms { get; set; }
Property Value
ForceSigningCertificateV1
Declaration
public bool ForceSigningCertificateV1 { get; set; }
Property Value
GracePeriodCatalog
Declaration
public IGracePeriodCatalog GracePeriodCatalog { get; set; }
Property Value
PolicyDigest
Declaration
public DigestAlgorithmAndValue PolicyDigest { get; set; }
Property Value
PolicyOid
Declaration
public string PolicyOid { get; set; }
Property Value
PolicyUri
Declaration
public Uri PolicyUri { get; set; }
Property Value
PreviousArchiveTimestampPolicy
Declaration
public CadesPolicySpec PreviousArchiveTimestampPolicy { get; set; }
Property Value
RevocationDate
Declaration
public DateTimeOffset RevocationDate { get; set; }
Property Value
SignatureAlgorithms
Declaration
public List<SignatureAlgorithm> SignatureAlgorithms { get; set; }
Property Value
SignatureTimestampPolicy
Declaration
public CadesPolicySpec SignatureTimestampPolicy { get; set; }
Property Value
SigningPeriodEnd
Declaration
public DateTimeOffset SigningPeriodEnd { get; set; }
Property Value
SigningPeriodStart
Declaration
public DateTimeOffset SigningPeriodStart { get; set; }
Property Value
Methods
AddTrustArbitrator(ITrustArbitrator, Boolean)
Add a trust root arbitrator to the policy spec. The policy spec needs at least one arbitrator added.
Declaration
public void AddTrustArbitrator(ITrustArbitrator arbitrator, bool propagateToTimestampPolicies = false)
Parameters
AddTrustArbitrator(ITrustArbitrator[])
Add a trust root arbitrator to the policy spec. The policy spec needs at least one arbitrator added.
Declaration
public void AddTrustArbitrator(params ITrustArbitrator[] arbitrators)
Parameters
CheckIntegrity()
Declaration
public void CheckIntegrity()
ClearTrustArbitrator(Boolean)
Clear the trust arbitrators in this policy spec
Declaration
public void ClearTrustArbitrator(bool propagateToTimestampPolicies = false)
Parameters
Type |
Name |
Description |
Boolean |
propagateToTimestampPolicies |
|
GetCadesA(ITrustArbitrator)
Declaration
public static CadesPolicySpec GetCadesA(ITrustArbitrator arbitrator = null)
Parameters
Returns
GetCadesBes(ITrustArbitrator)
Declaration
public static CadesPolicySpec GetCadesBes(ITrustArbitrator arbitrator = null)
Parameters
Returns
GetCadesC(ITrustArbitrator)
Declaration
public static CadesPolicySpec GetCadesC(ITrustArbitrator arbitrator = null)
Parameters
Returns
GetCadesT(ITrustArbitrator)
Declaration
public static CadesPolicySpec GetCadesT(ITrustArbitrator arbitrator = null)
Parameters
Returns
GetCadesXLong(ITrustArbitrator)
Declaration
public static CadesPolicySpec GetCadesXLong(ITrustArbitrator arbitrator = null)
Parameters
Returns
GetCadesXLongType1(ITrustArbitrator)
Declaration
public static CadesPolicySpec GetCadesXLongType1(ITrustArbitrator arbitrator = null)
Parameters
Returns
GetCadesXType1(ITrustArbitrator)
Declaration
public static CadesPolicySpec GetCadesXType1(ITrustArbitrator arbitrator = null)
Parameters
Returns
GetCertificateStore()
Declaration
public ICertificateStore GetCertificateStore()
Returns
Implements
GetFailureLevel(ValidationItemTypes)
Declaration
public ValidationFailureLevels GetFailureLevel(ValidationItemTypes failureType)
Parameters
Returns
IsRootTrusted(PKCertificate, Nullable<DateTimeOffset>, out ValidationResults)
Declaration
public virtual bool IsRootTrusted(PKCertificate root, DateTimeOffset? dateReference, out ValidationResults vr)
Parameters
Returns
Implements
SetFailureLevel(ValidationItemTypes, ValidationFailureLevels)
Declaration
public void SetFailureLevel(ValidationItemTypes failureType, ValidationFailureLevels level)
Parameters
SetGracePeriod(TimeSpan)
The time period that permits the certificate revocation information to propagate through the revocation process to relying parties
Declaration
public void SetGracePeriod(TimeSpan gracePeriod)
Parameters
Type |
Name |
Description |
TimeSpan |
gracePeriod |
Grace period timespan
|
Extension Methods