Class SignerUtilities
- Namespace
- Org.BouncyCastle.Security
- Assembly
- BouncyCastle.Cryptography.dll
Signer Utility class contains methods that can not be specifically grouped into other classes.
public static class SignerUtilities
- Inheritance
-
SignerUtilities
- Inherited Members
Properties
Algorithms
public static ICollection<string> Algorithms { get; }
Property Value
Methods
GetDefaultX509Parameters(DerObjectIdentifier)
public static Asn1Encodable GetDefaultX509Parameters(DerObjectIdentifier id)
Parameters
Returns
GetDefaultX509Parameters(string)
public static Asn1Encodable GetDefaultX509Parameters(string algorithm)
Parameters
algorithmstring
Returns
GetEncodingName(DerObjectIdentifier)
public static string GetEncodingName(DerObjectIdentifier oid)
Parameters
Returns
GetObjectIdentifier(string)
Returns an ObjectIdentifier for a given signature mechanism.
public static DerObjectIdentifier GetObjectIdentifier(string mechanism)
Parameters
mechanismstringA string representation of the signature mechanism.
Returns
- DerObjectIdentifier
A DerObjectIdentifier, null if the OID is not available.
GetSigner(DerObjectIdentifier)
public static ISigner GetSigner(DerObjectIdentifier id)
Parameters
Returns
GetSigner(string)
public static ISigner GetSigner(string algorithm)
Parameters
algorithmstring
Returns
InitSigner(DerObjectIdentifier, bool, AsymmetricKeyParameter, SecureRandom)
public static ISigner InitSigner(DerObjectIdentifier algorithmOid, bool forSigning, AsymmetricKeyParameter privateKey, SecureRandom random)
Parameters
algorithmOidDerObjectIdentifierforSigningboolprivateKeyAsymmetricKeyParameterrandomSecureRandom
Returns
InitSigner(string, bool, AsymmetricKeyParameter, SecureRandom)
public static ISigner InitSigner(string algorithm, bool forSigning, AsymmetricKeyParameter privateKey, SecureRandom random)
Parameters
algorithmstringforSigningboolprivateKeyAsymmetricKeyParameterrandomSecureRandom