MessageCertificateX509File Class
Represents a certificate file stored in the certificate store.
Namespace: Microsoft.ConfigurationManagement.Messaging.Framework
Assembly: Microsoft.ConfigurationManagement.Messaging (in Microsoft.ConfigurationManagement.Messaging.dll)
Inheritance Hierarchy
System.Object
Microsoft.ConfigurationManagement.Messaging.Framework.MessageCertificate
Microsoft.ConfigurationManagement.Messaging.Framework.MessageCertificateX509
Microsoft.ConfigurationManagement.Messaging.Framework.MessageCertificateX509File
Syntax
[SerializableAttribute]
public sealed class MessageCertificateX509File : MessageCertificateX509
[SerializableAttribute]
public ref class MessageCertificateX509File sealed : MessageCertificateX509
<SerializableAttribute>
Public NotInheritable Class MessageCertificateX509File
Inherits MessageCertificateX509
Constructors
Name | Description | |
---|---|---|
MessageCertificateX509File(String) | Initializes a new instance of the MessageCertificateX509File class. Builds a MessageCertificateX509File object using the default store of MY and store location of LocalMachine. |
|
MessageCertificateX509File(String, String) | Initializes a new instance of the MessageCertificateX509File class. Builds a MessageCertificateX509File object using the default store location of LocalMachine. |
|
MessageCertificateX509File(String, String, StoreLocation) | Initializes a new instance of the MessageCertificateX509File class. |
Properties
Name | Description | |
---|---|---|
CertificateEncoded | Gets the complete certificate in blob format. (Inherited from MessageCertificateX509.) |
|
HashAlgorithmOid | Gets the virtual hash algorithm name in a format that can be used for signing and hashing of messages by using the Crypto API. (Inherited from MessageCertificateX509.) |
|
IsDeserialized | If true, the certificate has been deserialized from a binary formatter. At this time, some data is lost when serialization occurs, which allows throwing clear exceptions indicating this. (Inherited from MessageCertificateX509.) |
|
IsSelfSigned | Gets a value that indicates whether the certificate is self-signed or issued by a certificate authority (CA). (Inherited from MessageCertificateX509.) |
|
IsVolatile | Indicates whether MessageCertificateX509File is a volatile certificate. (Overrides MessageCertificateX509.IsVolatile.) |
|
PublicKey | Gets the public key for a certificate. (Inherited from MessageCertificateX509.) |
|
PublicKeyEncoded | Gets the public key blob for a certificate. (Inherited from MessageCertificateX509.) |
|
StoreLocation | Gets or sets the store location. Returns null if the store location is not supported. (Inherited from MessageCertificateX509.) |
|
StoreName | Gets or sets the name of the store. Returns null if the store name is not supported. (Inherited from MessageCertificateX509.) |
|
Thumbprint | Gets the certificate thumbprint for use in cryptographic operations. (Inherited from MessageCertificateX509.) |
|
UseLegacyHashing | If true, legacy hashing should be used. This implies that algorithms should not be specified, depending on the implementation of the message or sender. (Inherited from MessageCertificateX509.) |
|
X509Certificate | Gets the certificate that is specified by Certificate. (Inherited from MessageCertificateX509.) |
Methods
Name | Description | |
---|---|---|
Dispose() | Dispose of any unmanaged resources. (Inherited from MessageCertificateX509.) |
|
Encrypt(Byte[]) | Encrypts data. (Inherited from MessageCertificateX509.) |
|
Encrypt(String) | Encrypts data using the certificate. (Inherited from MessageCertificate.) |
|
Equals(Object) | (Inherited from Object.) |
|
Find(StoreLocation, String, X509FindType, String) | Attempts to find a certificate and assign the property information to select the matching certificate. If there are multiple matches, only the first match will be returned. |
|
Find(StoreLocation, String, X509FindType, String, Boolean) | Attempts to find a certificate and assign the property information to select the matching certificate. If there are multiple matches, only the first match will be returned. |
|
GetHashCode() | (Inherited from Object.) |
|
GetObjectData(SerializationInfo, StreamingContext) | Handles serialization for this class. (Overrides MessageCertificateX509.GetObjectData(SerializationInfo, StreamingContext).) |
|
GetPublicKey() | Gets the public key for a certificate. (Inherited from MessageCertificateX509.) |
|
GetType() | (Inherited from Object.) |
|
Hash(Byte[]) | Hashes data by using a HashAlgorithm algorithm. (Inherited from MessageCertificateX509.) |
|
HashAndSign(Byte[], MessageCertificateSigningOptions) | Hashes data, and then signs the hash. (Inherited from MessageCertificateX509.) |
|
HashAndSign(String, Encoding, MessageCertificateSigningOptions) | Hashes data, and then signs the hash. (Inherited from MessageCertificateX509.) |
|
HashAndSign(String, MessageCertificateSigningOptions) | Hashes data, and then signs the hash. (Inherited from MessageCertificateX509.) |
|
OnDeserialization(Object) | Deserialization handler. (Inherited from MessageCertificateX509.) |
|
RemoveCertificateFromStore(MessageCertificateX509File) | Removes a certificate from the store based on a MessageCertificateX509File instance. Note that this will dispose any certificate resources from this instance and the X509Certificate object will no longer be usable. |
|
RemoveCertificateFromStore(StoreLocation, String, String) | Removes a certificate from the certificate store. |
|
Sign(Byte[]) | Signs data by using a certificate. (Inherited from MessageCertificateX509.) |
|
Sign(Byte[], String) | Signs data by using a certificate. (Inherited from MessageCertificateX509.) |
|
Sign(String) | Signs data using the certificate. (Inherited from MessageCertificate.) |
|
Sign(String, Encoding) | Signs data by using a certificate. (Inherited from MessageCertificateX509.) |
|
ToString() | (Inherited from Object.) |
|
VerifyPkcsSignature(Byte[], Byte[]) | Performs a Public Key Cryptography Standards (PKCS) signature verification of a blob. (Inherited from MessageCertificateX509.) |
|
VerifySignature(Byte[], Byte[]) | Verifies the signature by using the certificate specified in the properties. Note: The byte signature is reversed to support interop in native C++ byte signing. (Inherited from MessageCertificateX509.) |
|
VerifySignature(Byte[], Byte[], String) | Verifies the signature by using the certificate specified in the properties. Note: The byte signature is reversed to support interop in native C++ byte signing. (Inherited from MessageCertificateX509.) |
|
VerifySignature(Byte[], String) | Verifies a signature by using the certificate. (Inherited from MessageCertificate.) |
|
VerifySignature(Byte[], String, Encoding) | Verifies a signature by using the certificate. (Inherited from MessageCertificate.) |
Thread Safety
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Microsoft.ConfigurationManagement.Messaging.Framework Namespace
Return to top