This documentation is archived and is not being maintained.

SecurityTokenRequirement.KeyType Property

Gets or sets the type of key (asymmetric or symmetric) associated with a security token.

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

public SecurityKeyType KeyType { get; set; }

Property Value

Type: System.IdentityModel.Tokens.SecurityKeyType
A SecurityKeyType that specifies the type of key (asymmetric or symmetric) associated with a security token. The default value is SymmetricKey.

The value of the KeyType property can also be accessed by getting the Properties property, which is a collection of property values. The value of the KeyType property is stored at the index matching the value of the KeyTypeProperty property.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

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

.NET Framework

Supported in: 3.5, 3.0
Show: