WS_SECURITY_TOKEN_TYPE Enumeration

[This documentation is preliminary and is subject to change.]

The type of a security token. This is used to represent the runtime type of a security token, and can be extracted from a security token using the key WS_SECURITY_TOKEN_PROPERTY_TOKEN_TYPE.

Syntax

enum WS_SECURITY_TOKEN_TYPE {
  WS_USERNAME_SECURITY_TOKEN_TYPE,
  WS_KERBEROS_APREQ_SECURITY_TOKEN_TYPE,
  WS_XML_SECURITY_TOKEN_TYPE,
  WS_SAML_SECURITY_TOKEN_TYPE,
  WS_CERT_SECURITY_TOKEN_TYPE,
  WS_SECURITY_CONTEXT_SECURITY_TOKEN_TYPE,
  WS_RSA_SECURITY_TOKEN_TYPE,
  WS_DERIVED_SECURITY_TOKEN_TYPE,
  WS_ENCRYPTED_KEY_SECURITY_TOKEN_TYPE,
  WS_CUSTOM_SECURITY_TOKEN_TYPE 
};

Constants

  • WS_USERNAME_SECURITY_TOKEN_TYPE
    Username/password security token. It has no associated cryptographic key.

  • WS_KERBEROS_APREQ_SECURITY_TOKEN_TYPE
    A message security token representing the Kerberos AP_REQ ticket. It has a symmetric key.

  • WS_XML_SECURITY_TOKEN_TYPE
    A security token representing an opaque XML-form token, typically used on the client side on federation scenarios. It may have no key, a symmetric key or an asymmetric key.

  • WS_SAML_SECURITY_TOKEN_TYPE
    A security token representing a SAML assertion.

  • WS_CERT_SECURITY_TOKEN_TYPE
    A security token representing an X.509 certificate. It has an RSA or DSA based asymmetric key.

  • WS_SECURITY_CONTEXT_SECURITY_TOKEN_TYPE
    A security context token representing a message level security session.

  • WS_RSA_SECURITY_TOKEN_TYPE
    A security token representing an RSA asymmetric key.

  • WS_DERIVED_SECURITY_TOKEN_TYPE
    A security token that is generated from another symmetric key security token by deriving a new key from the source token's key using a cryptographic secret expansion algorithm such as P-SHA1.

  • WS_ENCRYPTED_KEY_SECURITY_TOKEN_TYPE
    A security token that represents an encrypted key.

  • WS_CUSTOM_SECURITY_TOKEN_TYPE
    A custom security token defined by the application.

Requirements

Minimum supported client Windows 7
Minimum supported server Windows Server 2008 R2
Header WebServices.h

See Also

WS_SECURITY_TOKEN_PROPERTY_TOKEN_TYPE

Send comments about this topic to Microsoft

Build date: 5/12/2009