BinarySecretSecurityToken Constructor (String, Int32, Boolean)

 

Initializes a new instance of the BinarySecretSecurityToken class.

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

protected BinarySecretSecurityToken(
	string id,
	int keySizeInBits,
	bool allowCrypto
)

Parameters

id
Type: System.String

The token ID.

keySizeInBits
Type: System.Int32

The key size in bits.

allowCrypto
Type: System.Boolean

A Boolean that indicates whether to allow cryptography.

Exception Condition
ArgumentOutOfRangeException

Either keySizeInBits is less than or equal to zero, or it is greater than or equal to 512, or it is not a multiple of 8.

.NET Framework
Available since 3.0
Return to top
Show: