Поделиться через


SymmetricProofDescriptor Конструктор (Int32, EncryptingCredentials, EncryptingCredentials, Byte[])

Use this constructor if you want to send a combined entropy.

Пространство имен: Microsoft.IdentityModel.Tokens
Сборка: Microsoft.IdentityModel (в microsoft.identitymodel.dll)

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

    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)

Синтаксис

'Декларация
Public Sub New ( _
    keySizeInBits As Integer, _
    targetWrappingCredentials As EncryptingCredentials, _
    requestorWrappingCredentials As EncryptingCredentials, _
    sourceEntropy As Byte() _
)
public SymmetricProofDescriptor (
    int keySizeInBits,
    EncryptingCredentials targetWrappingCredentials,
    EncryptingCredentials requestorWrappingCredentials,
    byte[] sourceEntropy
)
public:
SymmetricProofDescriptor (
    int keySizeInBits, 
    EncryptingCredentials^ targetWrappingCredentials, 
    EncryptingCredentials^ requestorWrappingCredentials, 
    array<unsigned char>^ sourceEntropy
)
public SymmetricProofDescriptor (
    int keySizeInBits, 
    EncryptingCredentials targetWrappingCredentials, 
    EncryptingCredentials requestorWrappingCredentials, 
    byte[] sourceEntropy
)
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

См. также

Справочник

Класс SymmetricProofDescriptor
SymmetricProofDescriptor Члены
Пространство имен Microsoft.IdentityModel.Tokens