Click or drag to resize
RSASignature Class
Creates and verifies digital signature using RSA-SH1 algorithm. This class cannot be inherited.
Inheritance Hierarchy
SystemObject
  Babel.LicensingRSASignature

Namespace:  Babel.Licensing
Assemblies:   Babel.Licensing (in Babel.Licensing.dll) Version: 2.4.0.0
  Babel.Licensing (in Babel.Licensing.dll) Version: 2.4.0.0
Syntax
public sealed class RSASignature : ISignatureProvider, 
	ILicenseSerializable, ISignatureWriter, IRSAKeys, ISignatureKeyInfo

The RSASignature type exposes the following members.

Constructors
  NameDescription
Public methodCode exampleRSASignature
Initializes a new instance of the RSASignature class.
Public methodCode exampleRSASignature(Int32)
Initializes a new instance of the RSASignature class with the specified RSA key size.
Public methodRSASignature(RSA)
Initializes a new instance of the RSASignature class with the specified RSA algorithm.
Public methodRSASignature(RSA, Boolean)
Initializes a new instance of the RSASignature class with the specified RSA algorithm and a flag which specify to whether to add public key information to the signature.
Top
Properties
  NameDescription
Public propertyAlgorithmName
Gets the name of the sign algorithm.
Public propertyGenerateKeyInfo
Gets or sets a value indicating whether the generate key information.
Public propertyHasPrivateKey
Gets a value indicating whether this object has private key.
Public propertyHasPublicKey
Gets a value indicating whether this object has public key.
Public propertyKeyPair
Gets or sets the RSA key pair.
Public propertyKeySize
Gets or sets the RSA key size.
Top
Methods
  NameDescription
Public methodStatic memberCreateFromKeyContainer
Creates an instance of RSASignature from the specified key container.
Public methodStatic memberCreateFromKeyFile
Creates an instance of RSASignature from the specified key pair file.
Public methodCreateKeyPair
Creates a new key pair.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodExportKeys
Export RSA keys as base 64 encoded string.
Public methodStatic memberCode exampleFromKeys
Creates an RSASignature object from the given public and private keys.
Public methodStatic memberFromStrongNamePublicKey
Creates an RSASignature object from the given strong name public key buffer.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodImportKeys
Import RSA keys.
Public methodImportRSA
Import RSA keys.
Public methodSignData
Generate the signature for the given data.
Public methodToRSA
Converts this object to a RSA.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodToXmlDigitalSignature
Converts this object to an XmlDigitalSignature object.
Public methodVerifyData
Verify the signature of a given data buffer.
Public methodWritePem(Stream, Boolean)
Writes the signature using PEM format to the specified stream.
Public methodCode exampleWritePem(String, Boolean)
Writes the signature using PEM format to the specified file.
Top
See Also