BinarySecretSecurityToken Constructor (String, Byte[], Boolean)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the BinarySecretSecurityToken class.

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

protected BinarySecretSecurityToken(
	string id,
	byte[] key,
	bool allowCrypto
)

Parameters

id
Type: System.String

The token ID.

key
Type: System.Byte[]

A byte-array that represents the key.

allowCrypto
Type: System.Boolean

A Boolean that indicates whether to allow cryptography.

Exception Condition
ArgumentNullException

key is null.

.NET Framework
Available since 3.0
Return to top
Show: