Table of Contents

Class SignatureMechanisms

Namespace
iText.Signatures
Assembly
itext.sign.dll

Class that contains OID mappings to extract a signature algorithm name from a signature mechanism OID, and conversely, to retrieve the appropriate signature mechanism OID given a signature algorithm and a digest function.

public class SignatureMechanisms
Inheritance
SignatureMechanisms
Inherited Members

Constructors

SignatureMechanisms()

public SignatureMechanisms()

Methods

GetAlgorithm(string)

Gets the algorithm name for a certain id.

public static string GetAlgorithm(string oid)

Parameters

oid string

an id (for instance "1.2.840.113549.1.1.1")

Returns

string

an algorithm name (for instance "RSA")

GetMechanism(string, string)

Get the signing mechanism name for a certain id and digest.

public static string GetMechanism(string oid, string digest)

Parameters

oid string

an id of an algorithm

digest string

digest of an algorithm

Returns

string

name of the mechanism

GetSignatureMechanismOid(string, string)

Attempt to look up the most specific OID for a given signature-digest combination.

public static string GetSignatureMechanismOid(string signatureAlgorithmName, string digestAlgorithmName)

Parameters

signatureAlgorithmName string

the name of the signature algorithm

digestAlgorithmName string

the name of the digest algorithm, if any

Returns

string

an OID string, or null if none was found.