X509CertificateRecipientClientCredential Class

Represents the settings used by the client to validate the certificate presented by the service using SSL authentication. It also contains any certificate for the service that is explicitly configured on the client to use for encrypting messages to the service using message security.

System.Object
  System.ServiceModel.Security.X509CertificateRecipientClientCredential

Namespace:  System.ServiceModel.Security
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public sealed class X509CertificateRecipientClientCredential

The X509CertificateRecipientClientCredential type exposes the following members.

  NameDescription
Public propertyAuthenticationGets the settings used to validate the service certificate obtained using SSL authentication.
Public propertyDefaultCertificateGets or sets the default certificate to use for the service.
Public propertyScopedCertificatesGets a scoped certificate to use to represent the service that the client is communicating with.
Public propertySslCertificateAuthenticationGets or sets the SSL certificate validator to use.
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodSetDefaultCertificate(String, StoreLocation, StoreName)Specifies the default certificate to use for the service. For bindings that use certificate-based message security, this certificate is used to encrypt messages to the service and is expected to be used by the service for signing replies to the client.
Public methodSetDefaultCertificate(StoreLocation, StoreName, X509FindType, Object)Specifies the default certificate to use for the service. For bindings that use certificate-based message security, this certificate is used to encrypt messages to the service and is expected to be used by the service for signing replies to the client.
Public methodSetScopedCertificate(String, StoreLocation, StoreName, Uri)Sets a certificate by subject name, certificate store location, and certificate store name, and stores it in a collection to be used for the URL that sets the scope.
Public methodSetScopedCertificate(StoreLocation, StoreName, X509FindType, Object, Uri)Sets a certificate by certificate store location, certificate store name, type of X.509 search, and value to search for, and stores it in a collection to be used for the URL that sets the scope.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

This class is used by the ServiceCertificate property in the ClientCredentials class.

This code shows one way to create an instance of this class.

X509CertificateRecipientClientCredential rcc =
    client.ClientCredentials.ServiceCertificate;

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft