Partager via


MessageCertificateX509 Class

 

Base class that encapsulates X509 certificates for messages.

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
      Microsoft.ConfigurationManagement.Messaging.Framework.MessageCertificateX509Volatile

Syntax

[SerializableAttribute]
public abstract class MessageCertificateX509 : MessageCertificate, 
    IDisposable, ISerializable, IDeserializationCallback
[SerializableAttribute]
public ref class MessageCertificateX509 abstract : MessageCertificate, 
    IDisposable, ISerializable, IDeserializationCallback
<SerializableAttribute>
Public MustInherit Class MessageCertificateX509
    Inherits MessageCertificate
    Implements IDisposable, ISerializable, IDeserializationCallback

Properties

Name Description
System_CAPS_pubproperty CertificateEncoded

Gets the complete certificate in blob format.

System_CAPS_protproperty HasDisposed

True if the certificate object has been disposed; otherwise, false.

System_CAPS_protproperty HashAlgorithmName

Gets the hash algorithm name in a format that can be used by .NET cryptography.

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.

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.

System_CAPS_pubproperty IsSelfSigned

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

System_CAPS_pubproperty IsVolatile

If true, the certificate is volatile and stored in memory. If false, the certificate is stored in a certificate store and can be used globally.

System_CAPS_protproperty PrivateKeyCsp

Gets the Cryptographic Service Provider (CSP) for the private key.

System_CAPS_pubproperty PublicKey

Gets the public key for a certificate. (Overrides MessageCertificate.PublicKey.)

System_CAPS_pubproperty PublicKeyEncoded

Gets the public key blob for a certificate. (Overrides MessageCertificate.PublicKeyEncoded.)

System_CAPS_protproperty RawCertificate

Represents the raw certificate (including the private key) in raw format.

System_CAPS_pubproperty StoreLocation

Gets or sets the store location. Returns null if the store location is not supported.

System_CAPS_pubproperty StoreName

Gets or sets the name of the store. Returns null if the store name is not supported.

System_CAPS_protproperty Synchronizer

Gets the synchronization object to use for locking across threads. (Inherited from MessageCertificate.)

System_CAPS_pubproperty Thumbprint

Gets the certificate thumbprint for use in cryptographic operations.

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.

System_CAPS_pubproperty X509Certificate

Gets the certificate that is specified by Certificate.

Methods

Name Description
System_CAPS_pubmethodSystem_CAPS_static CreateAndStoreSelfSignedCertificate(String, String, String, StoreLocation, String[], DateTime, DateTime)

Creates a self-signed certificate and stores it in the certificate store.

System_CAPS_pubmethodSystem_CAPS_static CreateSelfSignedCertificate(String, String, String[], DateTime, DateTime)

Creates a self-signed certificate.

System_CAPS_pubmethod Dispose()

Dispose of any unmanaged resources.

System_CAPS_protmethod Dispose(Boolean)

Dispose of any unmanaged resources.

System_CAPS_pubmethod Encrypt(Byte[])

Encrypts data. (Overrides MessageCertificate.Encrypt(Byte[]).)

System_CAPS_pubmethodSystem_CAPS_static Encrypt(Byte[], X509Certificate2[])

Encrypts data.

System_CAPS_pubmethod Encrypt(String)

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

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetObjectData(SerializationInfo, StreamingContext)

Handles Message Certificate X.509 serialization.

System_CAPS_pubmethod GetPublicKey()

Gets the public key for a certificate.

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod Hash(Byte[])

Hashes data by using a HashAlgorithm algorithm.

System_CAPS_pubmethodSystem_CAPS_static Hash(Byte[], String)

Hashes data using a HashAlgorithm algorithm.

System_CAPS_pubmethodSystem_CAPS_static HashAlgorithmOidToAlgId(String)

Converts an OID to an AlgID.

System_CAPS_pubmethodSystem_CAPS_static HashAlgorithmToAlgId(String)

Converts a hash algorithm string representation to an algorithm ID recognized by WinCrypt.

System_CAPS_pubmethodSystem_CAPS_static HashAlgorithmToOid(String)

Converts a hash algorithm to its OID representation.

System_CAPS_pubmethod HashAndSign(Byte[], MessageCertificateSigningOptions)

Hashes data, and then signs the hash.

System_CAPS_pubmethod HashAndSign(String, Encoding, MessageCertificateSigningOptions)

Hashes data, and then signs the hash.

System_CAPS_pubmethod HashAndSign(String, MessageCertificateSigningOptions)

Hashes data, and then signs the hash.

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod OnDeserialization(Object)

Deserialization handler.

System_CAPS_pubmethod Sign(Byte[])

Signs data by using a certificate. (Overrides MessageCertificate.Sign(Byte[]).)

System_CAPS_pubmethod Sign(Byte[], String)

Signs data by using a certificate.

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. (Overrides MessageCertificate.Sign(String, Encoding).)

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.

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. (Overrides MessageCertificate.VerifySignature(Byte[], Byte[]).)

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.

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