Condividi tramite


<clear> Element for <securityTokenManager>

Removes all user-supplied custom security token managers for XML-based security tokens within the application domain.

<microsoft.web.services3> Element
  <security> Element
    <securityTokenManager> Element

<clear />

Attributes and Elements

Attributes

None.

Child Elements

None.

Parent Elements

Element Description

<securityTokenManager> Element

Specifies the user supplied custom security token managers for XML-based security tokens within an application domain.

Remarks

When a security token is received by WSE that it does not natively support, WSE looks to see if a security token manager has been configured to handle that type of security token. WSE looks for a <add> Element for <securityTokenManager> element with a localName attribute that matches the element representing the security token within the WS-Security SOAP header. When there is a match, WSE calls the type specified in the type attribute of the <add> element to handle the security token.

Similarly, the <add> element can be used to register security token managers that override the default behavior of natively supported security tokens. For example, say you are using UsernameToken security tokens and you do not want WSE to authenticate the user name and password against a Windows user account. You can create and register a custom security token manager that authenticates the user name using a database of user name and password combinations. For more information about using UsernameToken security tokens, see How to: Verify Digital Signatures of SOAP Messages Signed Using a User Name and Password.

Before adding the <clear> element to a configuration file, you must add the microsoft.web.services3 configuration section handler to the configuration file. For details about adding the microsoft.web.services3 configuration section handler, see <section> Element.

Example

The following code example removes all custom security token managers for XML-based security tokens within the application domain.

<configuration>
  <microsoft.web.services3>
    <security> 
      <securityTokenManager>
        <clear />
      </securityTokenManager>
    </security>
  </microsoft.web.services3>
</configuration>

See Also

Tasks

How to: Create a Security Token Manager for a Custom Security Token

Reference

<securityTokenManager> Element
<cacheLimit> Element