Use this constructor if you want to send a combined entropy.
Namespace: Microsoft.IdentityModel.Tokens
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim keySizeInBits As Integer
Dim targetWrappingCredentials As EncryptingCredentials
Dim requestorWrappingCredentials As EncryptingCredentials
Dim sourceEntropy As Byte()

Dim instance As New SymmetricProofDescriptor(keySizeInBits, targetWrappingCredentials, requestorWrappingCredentials, sourceEntropy)

Syntax

Visual Basic
Public Sub New ( _
		keySizeInBits As Integer, _
		targetWrappingCredentials As EncryptingCredentials, _
		requestorWrappingCredentials As EncryptingCredentials, _
		sourceEntropy As Byte() _
)
C#
public SymmetricProofDescriptor (
		int keySizeInBits,
		EncryptingCredentials targetWrappingCredentials,
		EncryptingCredentials requestorWrappingCredentials,
		byte[] sourceEntropy
)
C++
public:
SymmetricProofDescriptor (
		int keySizeInBits, 
		EncryptingCredentials^ targetWrappingCredentials, 
		EncryptingCredentials^ requestorWrappingCredentials, 
		array<unsigned char>^ sourceEntropy
)
J#
public SymmetricProofDescriptor (
		int keySizeInBits, 
		EncryptingCredentials targetWrappingCredentials, 
		EncryptingCredentials requestorWrappingCredentials, 
		byte[] sourceEntropy
)
JScript
public function SymmetricProofDescriptor (
		keySizeInBits : int, 
		targetWrappingCredentials : EncryptingCredentials, 
		requestorWrappingCredentials : EncryptingCredentials, 
		sourceEntropy : byte[]
)

Parameters

keySizeInBits

The size of the symmetric key.

targetWrappingCredentials

The key encrypting credentials for the target of the request.

requestorWrappingCredentials

The encrypting credentials for the requestor used to encrypt the entropy or the proof token

sourceEntropy

The requestor's entropy.

Exceptions

Exception type Condition
ArgumentNullException

The source entorpy is null or is an empty array.

ArgumentOutOfRangeException

The key size is less than zero.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2008, Windows Vista, Not tested on Windows XP

See Also