• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class SignaturePolicyIdentifier

Identifies a signature policy for PAdES/ETSI signatures (ETSI EN 319 142-1, signature policy identifier). A signature policy is referenced by its OID and, optionally, by the hash of the policy document. When the hash is absent the policy is identified by OID alone (an "implied" policy).

Inheritance
object
SignaturePolicyIdentifier
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
Namespace: DRIT.Pdf.Forms
Assembly: DRIT.Pdf.dll
Syntax
public sealed class SignaturePolicyIdentifier

Constructors

SignaturePolicyIdentifier(string)

Creates a policy identifier from an OID alone (implied policy).

Declaration
public SignaturePolicyIdentifier(string oid)
Parameters
Type Name Description
string oid

The policy object identifier.

SignaturePolicyIdentifier(string, byte[], string?)

Creates a policy identifier from an OID and the hash of the policy document.

Declaration
public SignaturePolicyIdentifier(string oid, byte[] hash, string? hashAlgorithm = null)
Parameters
Type Name Description
string oid

The policy object identifier.

byte[] hash

The hash of the policy document.

string hashAlgorithm

The hash algorithm name (e.g. "SHA256"). Defaults to "SHA256".

Properties

Hash

The hash of the signature policy document, or null when the policy is identified by OID alone.

Declaration
public byte[]? Hash { get; }
Property Value
Type Description
byte[]

HashAlgorithm

The hash algorithm used to compute Hash, or null when no hash is present.

Declaration
public string? HashAlgorithm { get; }
Property Value
Type Description
string

IsImplied

true when the policy is identified by OID alone (no hash present).

Declaration
public bool IsImplied { get; }
Property Value
Type Description
bool

Oid

The object identifier (OID) of the signature policy.

Declaration
public string Oid { get; }
Property Value
Type Description
string
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX