InMemorySymmetricSecurityKey Constructor (Byte[], Boolean)

 

Initializes a new instance of the InMemorySymmetricSecurityKey class using the specified symmetric key and a value that indicates whether the binary data must be cloned.

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

public InMemorySymmetricSecurityKey(
	byte[] symmetricKey,
	bool cloneBuffer
)

Parameters

symmetricKey
Type: System.Byte[]

An array of Byte that contains the symmetric key.

cloneBuffer
Type: System.Boolean

true to clone the array passed into the symmetricKey parameter; otherwise, false.

Exception Condition
ArgumentNullException

symmetricKey is null.

ArgumentException

symmetricKey is zero length.

.NET Framework
Available since 3.0
Return to top
Show: