BasicHttpSecurityMode Enumeration
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Specifies the types of security that can be used with the system-provided BasicHttpBinding binding.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
| Member name | Description | |
|---|---|---|
| None | The SOAP message is not secured during transfer. This is the default behavior. | |
| Transport | Security is provided using HTTPS. The service must be configured with SSL certificates. The SOAP message is protected as a whole using HTTPS. The service is authenticated by the client using the service’s SSL certificate. | |
| TransportWithMessageCredential | This mode provides integrity, confidentiality, and server authentication using HTTPS. The service must be configured with a certificate. Client authentication is provided by SOAP message security. This mode is applicable when the user is authenticating with a UserName or Certificate credential and there is an existing HTTPS deployment for securing message transfer. | |
| TransportCredentialOnly | This mode provides only HTTP-based client authentication. It does not provide message integrity or confidentiality. |
The default behavior for BasicHttpBinding is None. To specify another value, use the BasicHttpBinding(BasicHttpSecurityMode) constructor.
Capabilities
If you use this API in your app, you must specify the following capabilities in the app manifest. Otherwise, your app might not work correctly or it might exit unexpectedly.
ID_CAP_NETWORKING | Windows Phone 8, Windows Phone OS 7.1 |
For more info, see App capabilities and hardware requirements for Windows Phone 8.