MessageSecurityOverMsmq::ClientCredentialType Property

 

Gets or sets the MessageCredentialType security setting for messages sent over the MSMQ transport.

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

public:
property MessageCredentialType ClientCredentialType {
	MessageCredentialType get();
	void set(MessageCredentialType value);
}

Property Value

Type: System.ServiceModel::MessageCredentialType

The MessageCredentialType security setting for messages sent over the MSMQ transport.

This property can be set to one of the following values:

  • None: This allows the service to interact with anonymous clients. Neither the service nor the client requires a credential.

  • Windows: This allows the SOAP exchanges to be under the authenticated context of a Windows credential. This always performs Kerberos-based authentication.

  • UserName: This allows the service to require that the client be authenticated using a UserName credential. This credential must be specified using ClientCredentials class.

System_CAPS_noteNote

WCF does not support sending a password digest or deriving keys using password and using such keys for message security. As such, WCF enforces that the exchange is secured when using UserName credentials. This mode requires that the service certificate be specified on the client using ClientCredential behavior and serviceCertificate:

  • Certificate: This allows the service to require that the client be authenticated using a certificate. The client credential in this case must be specified using ClientCredentials class or ClientCredentials behavior. The service credential in this case must be specified using ClientCredentials class or ClientCredentials behavior by specifying the serviceCertificate.

  • InfoCard: This allows the service to require that the client be authenticated using an InfoCard. The serviceCertificate must be provisioned in the ClientCredential behavior.

  • The Certificate credential for the MessageSecurityOverMsmq is relevant only when the security mode is set to Both or Message.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show: