Export (0) Print
Expand All

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.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft