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
stringan 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
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
stringthe name of the signature algorithm
digestAlgorithmName
stringthe name of the digest algorithm, if any