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::RequireCryptographicToken Property

 

Gets or sets a value that indicates whether the security token must be capable of performing cryptographic operations, such as encryption.

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

public:
property bool RequireCryptographicToken {
	bool get();
	void set(bool value);
}

Property Value

Type: System::Boolean

true if the security token must be capable of performing cryptographic operations; otherwise, false. The default is false.

Some security tokens, such as the UserNameSecurityToken, are not secure enough to perform cryptographic operations and should only be used for authentication.

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

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