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 or sets a scoped certificate to use to represent the service that the client is communicating with.
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (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)Gets 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)Gets 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, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

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.

Community Additions

ADD
Show:
© 2014 Microsoft