Use this constructor if you want the STS to autogenerate the key and send it in the proof token as encrypted key. Two cases are covered here: 1. The client sends the entropy, but the server rejects it. 2. The client does not send the entropy, so use the server's 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 instance As New SymmetricProofDescriptor(keySizeInBits, targetWrappingCredentials, requestorWrappingCredentials)

Syntax

Visual Basic
Public Sub New ( _
		keySizeInBits As Integer, _
		targetWrappingCredentials As EncryptingCredentials, _
		requestorWrappingCredentials As EncryptingCredentials _
)
C#
public SymmetricProofDescriptor (
		int keySizeInBits,
		EncryptingCredentials targetWrappingCredentials,
		EncryptingCredentials requestorWrappingCredentials
)
C++
public:
SymmetricProofDescriptor (
		int keySizeInBits, 
		EncryptingCredentials^ targetWrappingCredentials, 
		EncryptingCredentials^ requestorWrappingCredentials
)
J#
public SymmetricProofDescriptor (
		int keySizeInBits, 
		EncryptingCredentials targetWrappingCredentials, 
		EncryptingCredentials requestorWrappingCredentials
)
JScript
public function SymmetricProofDescriptor (
		keySizeInBits : int, 
		targetWrappingCredentials : EncryptingCredentials, 
		requestorWrappingCredentials : EncryptingCredentials
)

Parameters

keySizeInBits

The size of the symmetric key.

targetWrappingCredentials

The key encrypting credentials for the target of the request.

requestorWrappingCredentials

The key encrypting credentials for the requestor.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

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

See Also