Use this constructor if you want the STS to autogenerate the key using a random number generator and send it in the proof token as a binary secret.
Namespace: Microsoft.IdentityModel.Tokens
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim keySizeInBits As Integer
Dim targetWrappingCredentials As EncryptingCredentials

Dim instance As New SymmetricProofDescriptor(keySizeInBits, targetWrappingCredentials)

Syntax

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

Parameters

keySizeInBits

The size of the symmetric key.

targetWrappingCredentials

The key encrypting credentials for the target of the request.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

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

See Also