ICryptography |
public interface ICryptographyContext : IDisposable
The ICryptographyContext type exposes the following members.
Name | Description | |
---|---|---|
EnabledDigestAlgorithms | Get the enabled digest algorithms in ranked order. | |
EnabledEncryptionAlgorithms | Get the enabled encryption algorithms in ranked order. | |
EncryptionProtocol | Get the encryption protocol. | |
KeyExchangeProtocol | Get the key exchange protocol. | |
PrepareBeforeSigning | Get or set whether a MimeEntity should be prepared before signing. | |
SignatureProtocol | Get the signature protocol. |
Name | Description | |
---|---|---|
CanEncrypt | Check whether or not the cryptography context can encrypt to a particular recipient. | |
CanEncryptAsync | Asynchronously check whether or not the cryptography context can encrypt to a particular recipient. | |
CanSign | Check whether or not a particular mailbox address can be used for signing. | |
CanSignAsync | Asynchronously check whether or not a particular mailbox address can be used for signing. | |
Decrypt | Decrypt the specified encryptedData. | |
DecryptAsync | Asynchronously decrypt the specified encryptedData. | |
Disable(DigestAlgorithm) | Disable the digest algorithm. | |
Disable(EncryptionAlgorithm) | Disable the encryption algorithm. | |
Dispose | (Inherited from IDisposable) | |
Enable(DigestAlgorithm) | Enable the digest algorithm. | |
Enable(EncryptionAlgorithm) | Enable the encryption algorithm. | |
Encrypt | Encrypt the specified content for the specified recipients. | |
EncryptAsync | Asynchronously encrypt the specified content for the specified recipients. | |
Export | Exports the keys for the specified mailboxes. | |
ExportAsync | Asynchronously exports the keys for the specified mailboxes. | |
GetDigestAlgorithm | Get the digest algorithm from the micalg parameter value in a multipart/signed part. | |
GetDigestAlgorithmName | Get the string name of the digest algorithm for use with the micalg parameter of a multipart/signed part. | |
Import | Imports the public certificates or keys from the specified stream. | |
ImportAsync | Asynchronously imports the public certificates or keys from the specified stream. | |
IsEnabled(DigestAlgorithm) | Check whether the specified digest algorithm is enabled. | |
IsEnabled(EncryptionAlgorithm) | Check whether the specified encryption algorithm is enabled. | |
Sign | Sign the content using the specified signer and digest algorithm. | |
SignAsync | Asynchronously sign the content using the specified signer and digest algorithm. | |
Supports | Check whether or not the specified protocol is supported by the ICryptographyContext. | |
Verify | Verify the specified content using the detached signatureData. | |
VerifyAsync | Asynchronously verify the specified content using the detached signatureData. |