Share via


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
System_CAPS_pubmethod 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.

System_CAPS_pubmethod MessageCertificateX509File(String, String)

Initializes a new instance of the MessageCertificateX509File class.

Builds a MessageCertificateX509File object using the default store location of LocalMachine.

System_CAPS_pubmethod MessageCertificateX509File(String, String, StoreLocation)

Initializes a new instance of the MessageCertificateX509File class.

Properties

Name Description
System_CAPS_pubproperty CertificateEncoded

Gets the complete certificate in blob format. (Inherited from MessageCertificateX509.)

System_CAPS_pubproperty 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.)

System_CAPS_pubproperty 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.)

System_CAPS_pubproperty IsSelfSigned

Gets a value that indicates whether the certificate is self-signed or issued by a certificate authority (CA). (Inherited from MessageCertificateX509.)

System_CAPS_pubproperty IsVolatile

Indicates whether MessageCertificateX509File is a volatile certificate. (Overrides MessageCertificateX509.IsVolatile.)

System_CAPS_pubproperty PublicKey

Gets the public key for a certificate. (Inherited from MessageCertificateX509.)

System_CAPS_pubproperty PublicKeyEncoded

Gets the public key blob for a certificate. (Inherited from MessageCertificateX509.)

System_CAPS_pubproperty StoreLocation

Gets or sets the store location. Returns null if the store location is not supported. (Inherited from MessageCertificateX509.)

System_CAPS_pubproperty StoreName

Gets or sets the name of the store. Returns null if the store name is not supported. (Inherited from MessageCertificateX509.)

System_CAPS_pubproperty Thumbprint

Gets the certificate thumbprint for use in cryptographic operations. (Inherited from MessageCertificateX509.)

System_CAPS_pubproperty 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.)

System_CAPS_pubproperty X509Certificate

Gets the certificate that is specified by Certificate. (Inherited from MessageCertificateX509.)

Methods

Name Description
System_CAPS_pubmethod Dispose()

Dispose of any unmanaged resources. (Inherited from MessageCertificateX509.)

System_CAPS_pubmethod Encrypt(Byte[])

Encrypts data. (Inherited from MessageCertificateX509.)

System_CAPS_pubmethod Encrypt(String)

Encrypts data using the certificate. (Inherited from MessageCertificate.)

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_static 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.

System_CAPS_pubmethodSystem_CAPS_static 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.

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetObjectData(SerializationInfo, StreamingContext)

Handles serialization for this class. (Overrides MessageCertificateX509.GetObjectData(SerializationInfo, StreamingContext).)

System_CAPS_pubmethod GetPublicKey()

Gets the public key for a certificate. (Inherited from MessageCertificateX509.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod Hash(Byte[])

Hashes data by using a HashAlgorithm algorithm. (Inherited from MessageCertificateX509.)

System_CAPS_pubmethod HashAndSign(Byte[], MessageCertificateSigningOptions)

Hashes data, and then signs the hash. (Inherited from MessageCertificateX509.)

System_CAPS_pubmethod HashAndSign(String, Encoding, MessageCertificateSigningOptions)

Hashes data, and then signs the hash. (Inherited from MessageCertificateX509.)

System_CAPS_pubmethod HashAndSign(String, MessageCertificateSigningOptions)

Hashes data, and then signs the hash. (Inherited from MessageCertificateX509.)

System_CAPS_pubmethod OnDeserialization(Object)

Deserialization handler. (Inherited from MessageCertificateX509.)

System_CAPS_pubmethodSystem_CAPS_static 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.

System_CAPS_pubmethodSystem_CAPS_static RemoveCertificateFromStore(StoreLocation, String, String)

Removes a certificate from the certificate store.

System_CAPS_pubmethod Sign(Byte[])

Signs data by using a certificate. (Inherited from MessageCertificateX509.)

System_CAPS_pubmethod Sign(Byte[], String)

Signs data by using a certificate. (Inherited from MessageCertificateX509.)

System_CAPS_pubmethod Sign(String)

Signs data using the certificate. (Inherited from MessageCertificate.)

System_CAPS_pubmethod Sign(String, Encoding)

Signs data by using a certificate. (Inherited from MessageCertificateX509.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethod VerifyPkcsSignature(Byte[], Byte[])

Performs a Public Key Cryptography Standards (PKCS) signature verification of a blob. (Inherited from MessageCertificateX509.)

System_CAPS_pubmethod 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.)

System_CAPS_pubmethod 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.)

System_CAPS_pubmethod VerifySignature(Byte[], String)

Verifies a signature by using the certificate. (Inherited from MessageCertificate.)

System_CAPS_pubmethod 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