Use this constructor if you want the sts to use the given key bytes. This happens when client sends the entropy, and the sts would just use that as the key for the issued token
Пространство имен: Microsoft.IdentityModel.Tokens
Сборка: Microsoft.IdentityModel (в microsoft.identitymodel.dll)

Использование

Visual Basic
Dim key As Byte()
Dim targetWrappingCredentials As EncryptingCredentials

Dim instance As New SymmetricProofDescriptor(key, targetWrappingCredentials)

Синтаксис

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

Параметры

key

the symmetric key that are used inside the issued token

targetWrappingCredentials

The key encrypting credentials for the relying party

Исключения

Тип исключений Условие
ArgumentNullException

When the key is null

Платформы

Платформа разработки

Windows Server 2003, Windows Vista

Target Platforms

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

См. также