Class X509CertificateCredentials
- Namespace
- Microsoft.Exchange.WebServices.Data
- Assembly
- Microsoft.Exchange.WebServices.dll
X509CertificateCredentials wraps an instance of X509Certificate2, it can be used for WS-Security/X509 certificate-based authentication.
public sealed class X509CertificateCredentials : WSSecurityBasedCredentials
- Inheritance
-
X509CertificateCredentials
- Inherited Members
Constructors
X509CertificateCredentials(X509Certificate2)
Initializes a new instance of the X509CertificateCredentials class.
public X509CertificateCredentials(X509Certificate2 certificate)
Parameters
certificate
X509Certificate2The X509Certificate2 object.
Remarks
The X509Certificate2 argument should have private key in order to sign the message.
Methods
ToString()
Gets the credentials string presentation.
public override string ToString()
Returns
- string
The string.