Table of Contents

Class SignaturePolicyInfo

Namespace
iText.Signatures
Assembly
itext.sign.dll

Class that encapsulates the signature policy information

public class SignaturePolicyInfo
Inheritance
SignaturePolicyInfo
Inherited Members

Remarks

Class that encapsulates the signature policy information

Sample:

SignaturePolicyInfo spi = new SignaturePolicyInfo("2.16.724.1.3.1.1.2.1.9", "G7roucf600+f03r/o0bAOQ6WAs0=", "SHA-1", "https://sede.060.gob.es/politica_de_firma_anexo_1.pdf");

Constructors

SignaturePolicyInfo(string, byte[], string, string)

Constructs a new SignaturePolicyInfo instance

public SignaturePolicyInfo(string policyIdentifier, byte[] policyHash, string policyDigestAlgorithm, string policyUri)

Parameters

policyIdentifier string

the id of the signature policy

policyHash byte[]

the hash of the signature policy

policyDigestAlgorithm string

the digestion algorithm of the signature policy

policyUri string

the uri of the full policy description

SignaturePolicyInfo(string, string, string, string)

Constructs a new SignaturePolicyInfo instance

public SignaturePolicyInfo(string policyIdentifier, string policyHashBase64, string policyDigestAlgorithm, string policyUri)

Parameters

policyIdentifier string

the id of the signature policy

policyHashBase64 string

the Base64 presentation of the hash of the signature policy

policyDigestAlgorithm string

the digestion algorithm of the signature policy

policyUri string

the uri of the full policy description

Methods

GetPolicyDigestAlgorithm()

Get the digestion algorithm of the signature policy.

public virtual string GetPolicyDigestAlgorithm()

Returns

string

the digestion algorithm of the signature policy

GetPolicyHash()

Get the hash of the signature policy.

public virtual byte[] GetPolicyHash()

Returns

byte[]

the hash of the signature policy

GetPolicyIdentifier()

Get the ID of the signature policy.

public virtual string GetPolicyIdentifier()

Returns

string

the ID of the signature policy

GetPolicyUri()

Get the uri of the full policy description.

public virtual string GetPolicyUri()

Returns

string

the uri of the full policy description