SecurityBindingElement.CreateCertificateOverTransportBindingElement Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a security binding element that expects clients to do certificate-based authentication using SOAP message security. This binding element expects the transport to provide server authentication as well as message protection (for example, HTTPS).
Overloads
CreateCertificateOverTransportBindingElement() |
Creates a security binding element that expects clients to do certificate-based authentication using SOAP message security. |
CreateCertificateOverTransportBindingElement(MessageSecurityVersion) |
Creates a security binding element that expects clients to do certificate-based authentication using SOAP message security. |
Remarks
The client must be configured with a certificate it uses for authentication.
Note
Once a SecurityBindingElement object is created by calling this method, the MessageSecurityVersion property should be treated as immutable. Inconsistent binding behavior may occur if this value is modified.
CreateCertificateOverTransportBindingElement()
- Source:
- SecurityBindingElement.cs
- Source:
- SecurityBindingElement.cs
- Source:
- SecurityBindingElement.cs
Creates a security binding element that expects clients to do certificate-based authentication using SOAP message security.
public:
static System::ServiceModel::Channels::TransportSecurityBindingElement ^ CreateCertificateOverTransportBindingElement();
public static System.ServiceModel.Channels.TransportSecurityBindingElement CreateCertificateOverTransportBindingElement ();
static member CreateCertificateOverTransportBindingElement : unit -> System.ServiceModel.Channels.TransportSecurityBindingElement
Public Shared Function CreateCertificateOverTransportBindingElement () As TransportSecurityBindingElement
Returns
A TransportSecurityBindingElement object.
Remarks
This binding element expects the transport to provide server authentication as well as message protection (for example, HTTPS).
The binding element is configured to use the Default property of the MessageSecurityVersion class.
The created binding has IncludeTimestamp set to true
.
The LocalClientSecuritySettings object returned from LocalClientSettings has its DetectReplays property set to false
.
The LocalServiceSecuritySettings object returned from LocalServiceSettings has its DetectReplays property set to false
.
Applies to
CreateCertificateOverTransportBindingElement(MessageSecurityVersion)
- Source:
- SecurityBindingElement.cs
- Source:
- SecurityBindingElement.cs
- Source:
- SecurityBindingElement.cs
Creates a security binding element that expects clients to do certificate-based authentication using SOAP message security.
public:
static System::ServiceModel::Channels::TransportSecurityBindingElement ^ CreateCertificateOverTransportBindingElement(System::ServiceModel::MessageSecurityVersion ^ version);
public static System.ServiceModel.Channels.TransportSecurityBindingElement CreateCertificateOverTransportBindingElement (System.ServiceModel.MessageSecurityVersion version);
static member CreateCertificateOverTransportBindingElement : System.ServiceModel.MessageSecurityVersion -> System.ServiceModel.Channels.TransportSecurityBindingElement
Public Shared Function CreateCertificateOverTransportBindingElement (version As MessageSecurityVersion) As TransportSecurityBindingElement
Parameters
- version
- MessageSecurityVersion
The MessageSecurityVersion for the binding.
Returns
A TransportSecurityBindingElement object.
Exceptions
version
is null
.
Remarks
This binding element expects the transport to provide server authentication as well as message protection (for example, HTTPS). The binding element is configured with the specified MessageSecurityVersion.
The created binding has IncludeTimestamp set to true
.
The LocalClientSecuritySettings object returned from LocalClientSettings has its DetectReplays property set to false
.
The LocalServiceSecuritySettings object returned from LocalServiceSettings has its DetectReplays property set to false
.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기