Class PadesAcceptablePoliciesCatalog
Class for creating a catalog of allowed PAdES policies for signature validation
Inherited Members
Namespace: Lacuna.Pki.Pades
Assembly: Lacuna.Pki.dll
Syntax
public class PadesAcceptablePoliciesCatalog : IPadesPolicyMapperBySignerInfo
Constructors
PadesAcceptablePoliciesCatalog(IEnumerable<PadesAcceptablePoliciesCatalog>)
Instantiates a PAdES acceptable explicit policies catalog from existing catalogs
Declaration
public PadesAcceptablePoliciesCatalog(IEnumerable<PadesAcceptablePoliciesCatalog> catalogs)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<PadesAcceptablePoliciesCatalog> | catalogs |
PadesAcceptablePoliciesCatalog(IEnumerable<PadesPolicySpec>)
Instatiates a PAdES acceptable explicit policies catalog
Declaration
public PadesAcceptablePoliciesCatalog(IEnumerable<PadesPolicySpec> policies = null)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<PadesPolicySpec> | policies | List of explicit policies |
Methods
AddPolicies(IEnumerable<PadesPolicySpec>)
Add allowed explicit signature policies
Declaration
public void AddPolicies(IEnumerable<PadesPolicySpec> policies)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<PadesPolicySpec> | policies | Explicit policies |
AddPolicy(PadesPolicySpec)
Add an allowed explicit signature policy
Declaration
public void AddPolicy(PadesPolicySpec policy)
Parameters
Type | Name | Description |
---|---|---|
PadesPolicySpec | 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(PadesSignerInfo)
Declaration
public PadesPolicySpec GetPolicy(PadesSignerInfo signerInfo)
Parameters
Type | Name | Description |
---|---|---|
PadesSignerInfo | signerInfo |
Returns
Type | Description |
---|---|
PadesPolicySpec |
Implements
MergeWith(PadesAcceptablePoliciesCatalog)
Declaration
public void MergeWith(PadesAcceptablePoliciesCatalog catalog)
Parameters
Type | Name | Description |
---|---|---|
PadesAcceptablePoliciesCatalog | catalog |