BinarySecretSecurityToken Constructor (String, Int32)

 
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)

public BinarySecretSecurityToken(
	string id,
	int keySizeInBits
)

Parameters

id
Type: System.String

The token ID.

keySizeInBits
Type: System.Int32

The key size in bits.

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: