Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
property SecurityKeyType KeyType {
	SecurityKeyType get();
	void set(SecurityKeyType value);
}

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.

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft