iText 8.0.5 API
iText.Signatures.SignaturePolicyInfo Class Reference

Class that encapsulates the signature policy information More...

Public Member Functions

  SignaturePolicyInfo (String policyIdentifier, byte[] policyHash, String policyDigestAlgorithm, String policyUri)
  Constructs a new SignaturePolicyInfo instance More...
 
  SignaturePolicyInfo? (String policyIdentifier, String policyHashBase64, String policyDigestAlgorithm, String policyUri)
  Constructs a new SignaturePolicyInfo instance More...
 
virtual String  GetPolicyIdentifier ()
  Get the ID of the signature policy. More...
 
virtual byte[]  GetPolicyHash ()
  Get the hash of the signature policy. More...
 
virtual String  GetPolicyDigestAlgorithm ()
  Get the digestion algorithm of the signature policy. More...
 
virtual String  GetPolicyUri ()
  Get the uri of the full policy description. More...
 

Detailed Description

Class that encapsulates the signature policy information

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");

Constructor & Destructor Documentation

◆ SignaturePolicyInfo()

iText.Signatures.SignaturePolicyInfo.SignaturePolicyInfo ( String  policyIdentifier,
byte[]  policyHash,
String  policyDigestAlgorithm,
String  policyUri 
)
inline

Constructs a new SignaturePolicyInfo instance

Parameters
policyIdentifier the id of the signature policy
policyHash the hash of the signature policy
policyDigestAlgorithm the digestion algorithm of the signature policy
policyUri the uri of the full policy description

Member Function Documentation

◆ GetPolicyDigestAlgorithm()

virtual String iText.Signatures.SignaturePolicyInfo.GetPolicyDigestAlgorithm ( )
inlinevirtual

Get the digestion algorithm of the signature policy.

Returns
the digestion algorithm of the signature policy

◆ GetPolicyHash()

virtual byte [] iText.Signatures.SignaturePolicyInfo.GetPolicyHash ( )
inlinevirtual

Get the hash of the signature policy.

Returns
the hash of the signature policy

◆ GetPolicyIdentifier()

virtual String iText.Signatures.SignaturePolicyInfo.GetPolicyIdentifier ( )
inlinevirtual

Get the ID of the signature policy.

Returns
the ID of the signature policy

◆ GetPolicyUri()

virtual String iText.Signatures.SignaturePolicyInfo.GetPolicyUri ( )
inlinevirtual

Get the uri of the full policy description.

Returns
the uri of the full policy description

◆ SignaturePolicyInfo?()

iText.Signatures.SignaturePolicyInfo.SignaturePolicyInfo? ( String  policyIdentifier,
String  policyHashBase64,
String  policyDigestAlgorithm,
String  policyUri 
)
inline

Constructs a new SignaturePolicyInfo instance

Parameters
policyIdentifier the id of the signature policy
policyHashBase64 the Base64 presentation of the hash of the signature policy
policyDigestAlgorithm the digestion algorithm of the signature policy
policyUri the uri of the full policy description