Class XmlPolicySpec
Inheritance
XmlPolicySpec
Assembly: Lacuna.Pki.dll
Syntax
public class XmlPolicySpec : ITrustArbitrator
Constructors
XmlPolicySpec()
Declaration
Properties
ArchiveTimestampPolicy
Declaration
public CadesPolicySpec ArchiveTimestampPolicy { get; set; }
Property Value
DigestAlgorithms
Declaration
public List<DigestAlgorithm> DigestAlgorithms { get; set; }
Property Value
Generation
Declaration
public XmlPolicySpec.GenerationSpec Generation { get; set; }
Property Value
PolicyId
Optionally specifies the policy's OID and other identifying properties.
Declaration
public XmlPolicyIdentifier PolicyId { get; set; }
Property Value
SigAndRefsTimestampPolicy
Declaration
public CadesPolicySpec SigAndRefsTimestampPolicy { 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
Validation
Declaration
public XmlPolicySpec.ValidationSpec Validation { 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()
ClearTrustArbitrators(Boolean)
Clear the trust arbitrators in this policy spec
Declaration
public void ClearTrustArbitrators(bool propagateToTimestampPolicies = false)
Parameters
Type |
Name |
Description |
Boolean |
propagateToTimestampPolicies |
|
GetCertificateStore()
Declaration
public ICertificateStore GetCertificateStore()
Returns
Implements
GetFailureLevel(ValidationItemTypes)
Declaration
public ValidationFailureLevels GetFailureLevel(ValidationItemTypes failureType)
Parameters
Returns
GetXadesBasic(ITrustArbitrator, Boolean)
Declaration
public static XmlPolicySpec GetXadesBasic(ITrustArbitrator arbitrator, bool includeSigningTime = false)
Parameters
Returns
GetXmlDSigBasic(ITrustArbitrator)
Declaration
public static XmlPolicySpec GetXmlDSigBasic(ITrustArbitrator arbitrator)
Parameters
Returns
GetXmlDSigBasic(ITrustArbitrator, DigestAlgorithm)
Returns the XmlDSig basic signature policy using the given digest algorithm for digest computation and also for
signing (RSA is implied).
Declaration
public static XmlPolicySpec GetXmlDSigBasic(ITrustArbitrator arbitrator, DigestAlgorithm preferredDigestAlgorithm)
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