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.
Пространство имен: Microsoft.IdentityModel.Tokens
Сборка: Microsoft.IdentityModel (в microsoft.identitymodel.dll)
Использование
Visual Basic |
---|
Dim keySizeInBits As Integer Dim targetWrappingCredentials As EncryptingCredentials Dim requestorWrappingCredentials As EncryptingCredentials Dim instance As New SymmetricProofDescriptor(keySizeInBits, targetWrappingCredentials, requestorWrappingCredentials) |
Синтаксис
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 ) |
Параметры
- 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.