Show / Hide Table of Contents

Class CadesPolicySpec

Class for setting Cades signature policy specifications

Inheritance
Object
CadesPolicySpec
BrazilCadesPolicySpec
ItalyCadesPolicySpec
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: Lacuna.Pki.Cades
Assembly: Lacuna.Pki.dll
Syntax
public class CadesPolicySpec : ITrustArbitrator

Constructors

CadesPolicySpec()

Declaration
public CadesPolicySpec()

Properties

AttributeGeneration

Declaration
public CadesPolicySpec.AttributeGenerationSpec AttributeGeneration { get; set; }
Property Value
Type Description
CadesPolicySpec.AttributeGenerationSpec

AttributeValidation

Declaration
public CadesPolicySpec.AttributeValidationSpec AttributeValidation { get; set; }
Property Value
Type Description
CadesPolicySpec.AttributeValidationSpec

CadesCTimestampPolicy

Declaration
public CadesPolicySpec CadesCTimestampPolicy { get; set; }
Property Value
Type Description
CadesPolicySpec

CurrentArchiveTimestampPolicy

Declaration
public CadesPolicySpec CurrentArchiveTimestampPolicy { get; set; }
Property Value
Type Description
CadesPolicySpec

DigestAlgorithms

Declaration
public List<DigestAlgorithm> DigestAlgorithms { get; set; }
Property Value
Type Description
List<DigestAlgorithm>

ForceSigningCertificateV1

Declaration
public bool ForceSigningCertificateV1 { get; set; }
Property Value
Type Description
Boolean

GracePeriodCatalog

Declaration
public IGracePeriodCatalog GracePeriodCatalog { get; set; }
Property Value
Type Description
IGracePeriodCatalog

PolicyDigest

Declaration
public DigestAlgorithmAndValue PolicyDigest { get; set; }
Property Value
Type Description
DigestAlgorithmAndValue

PolicyOid

Declaration
public string PolicyOid { get; set; }
Property Value
Type Description
String

PolicyUri

Declaration
public Uri PolicyUri { get; set; }
Property Value
Type Description
Uri

PreviousArchiveTimestampPolicy

Declaration
public CadesPolicySpec PreviousArchiveTimestampPolicy { get; set; }
Property Value
Type Description
CadesPolicySpec

RevocationDate

Declaration
public DateTimeOffset RevocationDate { get; set; }
Property Value
Type Description
DateTimeOffset

SignatureAlgorithms

Declaration
public List<SignatureAlgorithm> SignatureAlgorithms { get; set; }
Property Value
Type Description
List<SignatureAlgorithm>

SignatureTimestampPolicy

Declaration
public CadesPolicySpec SignatureTimestampPolicy { get; set; }
Property Value
Type Description
CadesPolicySpec

SigningPeriodEnd

Declaration
public DateTimeOffset SigningPeriodEnd { get; set; }
Property Value
Type Description
DateTimeOffset

SigningPeriodStart

Declaration
public DateTimeOffset SigningPeriodStart { get; set; }
Property Value
Type Description
DateTimeOffset

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
Type Name Description
ITrustArbitrator arbitrator
Boolean propagateToTimestampPolicies

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
Type Name Description
ITrustArbitrator[] arbitrators

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
Type Name Description
ITrustArbitrator arbitrator
Returns
Type Description
CadesPolicySpec

GetCadesBes(ITrustArbitrator)

Declaration
public static CadesPolicySpec GetCadesBes(ITrustArbitrator arbitrator = null)
Parameters
Type Name Description
ITrustArbitrator arbitrator
Returns
Type Description
CadesPolicySpec

GetCadesC(ITrustArbitrator)

Declaration
public static CadesPolicySpec GetCadesC(ITrustArbitrator arbitrator = null)
Parameters
Type Name Description
ITrustArbitrator arbitrator
Returns
Type Description
CadesPolicySpec

GetCadesT(ITrustArbitrator)

Declaration
public static CadesPolicySpec GetCadesT(ITrustArbitrator arbitrator = null)
Parameters
Type Name Description
ITrustArbitrator arbitrator
Returns
Type Description
CadesPolicySpec

GetCadesXLong(ITrustArbitrator)

Declaration
public static CadesPolicySpec GetCadesXLong(ITrustArbitrator arbitrator = null)
Parameters
Type Name Description
ITrustArbitrator arbitrator
Returns
Type Description
CadesPolicySpec

GetCadesXLongType1(ITrustArbitrator)

Declaration
public static CadesPolicySpec GetCadesXLongType1(ITrustArbitrator arbitrator = null)
Parameters
Type Name Description
ITrustArbitrator arbitrator
Returns
Type Description
CadesPolicySpec

GetCadesXType1(ITrustArbitrator)

Declaration
public static CadesPolicySpec GetCadesXType1(ITrustArbitrator arbitrator = null)
Parameters
Type Name Description
ITrustArbitrator arbitrator
Returns
Type Description
CadesPolicySpec

GetCertificateStore()

Declaration
public ICertificateStore GetCertificateStore()
Returns
Type Description
ICertificateStore
Implements
ITrustArbitrator.GetCertificateStore()

GetFailureLevel(ValidationItemTypes)

Declaration
public ValidationFailureLevels GetFailureLevel(ValidationItemTypes failureType)
Parameters
Type Name Description
ValidationItemTypes failureType
Returns
Type Description
ValidationFailureLevels

IsRootTrusted(PKCertificate, Nullable<DateTimeOffset>, out ValidationResults)

Declaration
public virtual bool IsRootTrusted(PKCertificate root, DateTimeOffset? dateReference, out ValidationResults vr)
Parameters
Type Name Description
PKCertificate root
Nullable<DateTimeOffset> dateReference
ValidationResults vr
Returns
Type Description
Boolean
Implements
ITrustArbitrator.IsRootTrusted(PKCertificate, Nullable<DateTimeOffset>, out ValidationResults)

SetFailureLevel(ValidationItemTypes, ValidationFailureLevels)

Declaration
public void SetFailureLevel(ValidationItemTypes failureType, ValidationFailureLevels level)
Parameters
Type Name Description
ValidationItemTypes failureType
ValidationFailureLevels level

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

Remarks

A grace period permits certificate revocation information to propagate through the revocation processes. This period could extend from the time an authorized entity requests certificate revocation to when the information is available for the relying party to use. In order to make sure that the certificate was not revoked at the time the signature was time-marked or time-stamped, verifiers should wait until the end of the grace period.

Extension Methods

LinkedTrustArbitratorExtension.GetLinkedWith(ITrustArbitrator, ITrustArbitrator[])
Back to top Copyright © 2015-2020 Lacuna Software