Class CadesAcceptablePoliciesCatalog
Class for creating a catalog of allowed CAdES policies for signature validation
Inherited Members
Namespace: Lacuna.Pki.Cades
Assembly: Lacuna.Pki.dll
Syntax
public class CadesAcceptablePoliciesCatalog : ICadesPolicyMapperBySignerInfo
Constructors
CadesAcceptablePoliciesCatalog(IEnumerable<CadesAcceptablePoliciesCatalog>)
Instantiates a CAdES acceptable explicit policies catalog from existing catalogs
Declaration
public CadesAcceptablePoliciesCatalog(IEnumerable<CadesAcceptablePoliciesCatalog> catalogs)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<CadesAcceptablePoliciesCatalog> | catalogs |
CadesAcceptablePoliciesCatalog(IEnumerable<CadesPolicySpec>)
Instatiates a CAdES acceptable explicit policies catalog
Declaration
public CadesAcceptablePoliciesCatalog(IEnumerable<CadesPolicySpec> policies = null)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<CadesPolicySpec> | policies | List of explicit policies |
Methods
AddPolicies(IEnumerable<CadesPolicySpec>)
Add allowed explicit signature policies
Declaration
public void AddPolicies(IEnumerable<CadesPolicySpec> policies)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<CadesPolicySpec> | policies | Explicit policies |
AddPolicy(CadesPolicySpec)
Add an allowed explicit signature policy
Declaration
public void AddPolicy(CadesPolicySpec policy)
Parameters
Type | Name | Description |
---|---|---|
CadesPolicySpec | policy | Explicit policy (signature policy with OID) |
AddTrustArbitrator(ITrustArbitrator, Boolean)
Add a trust arbitrator to all accepted policies.
Declaration
public void AddTrustArbitrator(ITrustArbitrator arbitrator, bool propagateToTimestampPolicies = false)
Parameters
Type | Name | Description |
---|---|---|
ITrustArbitrator | arbitrator | |
Boolean | propagateToTimestampPolicies |
ClearTrustArbitrators(Boolean)
Clear the trust arbitrators in all accepted policies
Declaration
public void ClearTrustArbitrators(bool propagateToTimestampPolicies = false)
Parameters
Type | Name | Description |
---|---|---|
Boolean | propagateToTimestampPolicies |
GetPolicy(CadesSignerInfo)
Declaration
public CadesPolicySpec GetPolicy(CadesSignerInfo signerInfo)
Parameters
Type | Name | Description |
---|---|---|
CadesSignerInfo | signerInfo |
Returns
Type | Description |
---|---|
CadesPolicySpec |
Implements
MergeWith(CadesAcceptablePoliciesCatalog)
Declaration
public void MergeWith(CadesAcceptablePoliciesCatalog catalog)
Parameters
Type | Name | Description |
---|---|---|
CadesAcceptablePoliciesCatalog | catalog |