Partager via


<binarySecurityTokenManager> Element

Defines the user-supplied custom security managers for an application domain.

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

<binarySecurityTokenManager>
  <add valueType type />
  <remove valueType />
  <clear />
</binarySecurityTokenManager>

Attributes and Elements

Attributes

None.

Child Elements

Element Description

<add> Element for <binarySecurityTokenManager>

Adds a user-supplied custom security manager to the application domain.

<remove> Element for <binarySecurityTokenManager>

Removes a user-supplied custom security manager to the application domain.

<clear> Element for <binarySecurityTokenManager>

Clears all user-supplied custom security managers for an application domain.

Parent Elements

Element Description

<security> Element

Controls the security settings for a WSE application.

Remarks

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

Example

The following code example specifies a type to call when http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3 binary security tokens are received.

<configuration>
  <microsoft.web.services3>
    <security> 
      <binarySecurityTokenManager>
        <add valueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"
           type="CustomSecurityNamespace.CustomSecurityClass, AssemblyName" 
           xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"/>
      </binarySecurityTokenManager>
    </security>
  </microsoft.web.services3>
</configuration>

See Also

Tasks

How to: Create a Class Representing a Custom Binary Security Token

Other Resources

Creating Custom Security Tokens