Use this constructor if you want to send a combined entropy.
Пространство имен: Microsoft.IdentityModel.Tokens
Сборка: Microsoft.IdentityModel (в microsoft.identitymodel.dll)

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

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)

Синтаксис

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[]
)

Параметры

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.

Исключения

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

The source entorpy is null or is an empty array.

ArgumentOutOfRangeException

The key size is less than zero.

Платформы

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

Windows Server 2003, Windows Vista

Target Platforms

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

См. также