Export (0) Print
Expand All

SessionSecurityToken.KeyGeneration Property

.NET Framework 4.5

Gets the identifier for the key generation in this token

Namespace:  System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public UniqueId KeyGeneration { get; }

Property Value

Type: System.Xml.UniqueId
The unique identifier for the key generation in this token.

The KeyGeneration property is unique within a session token. When a session token is issued it has only a context ID, which is accessible through the ContextId property. When the session token is renewed, the key generation is added.

The SessionSecurityTokenCacheKey class uses both the context ID and the key generation to generate a key for the token in the SessionSecurityTokenCache.

The SessionSecurityTokenHandler class serializes this property as the <Instance> child element of the <wsc:SecurityContextToken> element. For more information, see the documentation for the SessionSecurityTokenHandler.WriteToken method.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft