Share via


<binarySecurityTokenManager> Element

Specifies a user-supplied custom security manager.

<microsoft.web.services2> Element
  <security> Element

<binarySecurityTokenManager valueType type >
  <keyAlgorithm name />
  <renewalWindowInSeconds />
  <sessionKeyAlgorithm name />
</binarySecurityTokenManager>

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

<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.services2 configuration section handler to the configuration file. For details about adding the microsoft.web.services2 configuration section handler, see <section> Element (WSE for Microsoft .NET).

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.services2>
    <security> 
      <binarySecurityTokenManager 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"/>
    </security>
  </microsoft.web.services2>
</configuration>

See Also

Tasks

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

Other Resources

Creating Custom Security Tokens