Share via


<add> Element for <binarySecurityTokenManager>

Adds a user-supplied custom security manager.

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

<add valueType="<insert valueType uri string here>"
     type="<insert type reference here>" >

Attributes and Elements

Attributes

Attribute Description

valueType

Required attribute. Value type of the binary token.

type

Required attribute. The fully qualified type name of the custom security token manager.

Child Elements

Element Description

<keyAlgorithm> Element for <binarySecurityTokenManager>

Optional element. Specifies the key algorithm used by a security token.

<renewalWindowInSeconds> Element

Optional element. For KerberosToken security tokens, specifies the period of time immediately prior to expiration, in which the security can be renewed.

<sessionKeyAlgorithm> Element

Optional element. Specifies the key algorithm used by the X509SecurityToken security token for bulk encryption operations.

Parent Elements

Element Description

<binarySecurityTokenManager> Element

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

Remarks

Before adding the <add> element to a configuration file, you must add the microsoft.web.services3 configuration section handler to the configuration file. For more information, 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

Reference

<binarySecurityTokenManager> Element
<keyAlgorithm> Element for <binarySecurityTokenManager>
<renewalWindowInSeconds> Element
<sessionKeyAlgorithm> Element

Other Resources

Creating Custom Security Tokens