WS_SECURITY_TOKEN_PROPERTY_ID enumeration

Defines the keys for the fields and properties that can be extracted from a security token. Not all properties are valid for all security token types. The function WsGetSecurityTokenProperty uses the values defined here as keys.

See also WS_SECURITY_BINDING_PROPERTY.

Syntax


enum WS_SECURITY_TOKEN_PROPERTY_ID {  WS_SECURITY_TOKEN_PROPERTY_KEY_TYPE, 
  WS_SECURITY_TOKEN_PROPERTY_VALID_FROM_TIME, 
  WS_SECURITY_TOKEN_PROPERTY_VALID_TILL_TIME, 
  WS_SECURITY_TOKEN_PROPERTY_SERIALIZED_XML, 
  WS_SECURITY_TOKEN_PROPERTY_ATTACHED_REFERENCE_XML, 
  WS_SECURITY_TOKEN_PROPERTY_UNATTACHED_REFERENCE_XML, 
  WS_SECURITY_TOKEN_PROPERTY_SYMMETRIC_KEY 

};

Constants

WS_SECURITY_TOKEN_PROPERTY_KEY_TYPE

The accompanying value parameter of the WsGetSecurityTokenProperty function is a WS_SECURITY_KEY_TYPE value indicating the type of the proof key of the security token.

WS_SECURITY_TOKEN_PROPERTY_VALID_FROM_TIME

The accompanying value parameter of the WsGetSecurityTokenProperty function is a WS_DATETIME structure containing the time from when the security token is valid. For a security token that does not define an explicit start time for its validity period, a WS_DATETIME with a tick count of 0 is returned.

WS_SECURITY_TOKEN_PROPERTY_VALID_TILL_TIME

The accompanying value parameter of the WsGetSecurityTokenProperty function is a WS_DATETIME structure containing the point in time at which a currently valid security token becomes invalid. For a security token that does not define an explicit end time for its validity period, a WS_DATETIME with a tick count of 0 is returned.

WS_SECURITY_TOKEN_PROPERTY_SERIALIZED_XML

The accompanying value parameter of the WsGetSecurityTokenProperty function is a pointer to a WS_XML_BUFFER containing the XML wire form of the security token.

WS_SECURITY_TOKEN_PROPERTY_ATTACHED_REFERENCE_XML

The accompanying value parameter of the WsGetSecurityTokenProperty function is a pointer to a WS_XML_BUFFER containing the XML wire form of the attached reference to the security token. Attached references are used to refer to a security token when the security token and its referring point (such as a signature using that token) both occur in the same message.

WS_SECURITY_TOKEN_PROPERTY_UNATTACHED_REFERENCE_XML

The accompanying value parameter of the WsGetSecurityTokenProperty function is a pointer to a WS_XML_BUFFER containing the XML wire form of the unattached reference to the security token. Unattached references are used to refer to a security token when the security token does not occur in the same message as its referring point (such as a signature using that token).

WS_SECURITY_TOKEN_PROPERTY_SYMMETRIC_KEY

The accompanying value parameter of the WsGetSecurityTokenProperty function is a pointer to a WS_BYTES structure containing the raw key data of the symmetric token key. This property is available when WS_SECURITY_TOKEN_PROPERTY_KEY_TYPE is WS_SECURITY_KEY_TYPE_SYMMETRIC.

If the token was obtained via WsRequestSecurityToken, the returned buffer contains key material generated during the token request, which is either entropy generated by the client, entropy generated by the server or key material derived from from both client and server entropy, depending on WS_REQUEST_SECURITY_TOKEN_PROPERTY_ISSUED_TOKEN_KEY_ENTROPY.

When using this property with WsGetSecurityTokenProperty, the 'heap' parameter must be non-NULL.

The returned buffer should be securely erased or encrypted immediately after use to prevent leaking of sensitive data.

Requirements

Minimum supported client

Windows 7 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2 [desktop apps | Windows Store apps]

Header

WebServices.h

 

 

Community Additions

ADD
Show: