次の方法で共有


<security> of <customBinding> (Silverlight)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

This element configures security settings of the local client that use this custom binding and the values it uses for initiating a secure conversation with a service.

Syntax

<security 
   authenticationMode="UserNameOverTransport"   includeTimestamp="Boolean">
   <localClientSettings />
   <secureConversationBootstrap />
</security>

Attributes and Elements

The following sections describe attributes, child elements, and parent elements.

Attributes

Attribute Description

authenticationMode

Required string attribute. Specifies the authentication mode used between the initiator and the responder. The only valid value is UserNameOverTransport.

includeTimestamp

Optional Boolean attribute that provides a baseline time from which it can be determined whether the message is current, that it has arrived within the time skew allowed. If set to true, the time check is done; if set to false, the time check is not done. The default value is true. attribute.

Child Elements

Element Description

<localClientSettings> (Silverlight)

This element specifies the security settings of a local client for a custom binding.

<secureConversationBootstrap> (Silverlight)

This element specifies the values used for initiating a secure conversation service.

Parent Elements

Element Description

<binding> of <customBinding> (Silverlight)

This element defines all the attributes and contains all of the elements that are siblings to the <security> of <customBinding> (Silverlight) element that together specify the capabilities of a custom binding.

Text Value

Remarks

Example

The following example demonstrates how to configure security using a custom binding.

<configuration>
  <system.serviceModel>
    <bindings>
      <!-- configure a custom binding -->
      <customBinding>
        <binding name="CustomBinding1">
          <security authenticationMode="UserNameOverTransport" 
                    includeTimestamp="true" >
             <localClientSettings maxClockSkew="00:10:00" />
          </security>
        </binding>
      </customBinding>
    </bindings>
  </system.serviceModel>
</configuration>