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