SymmetricProofDescriptor Constructor (Int32, EncryptingCredentials, EncryptingCredentials)

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.

Namespace: Microsoft.IdentityModel.Tokens
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

    Dim keySizeInBits As Integer
Dim targetWrappingCredentials As EncryptingCredentials
Dim requestorWrappingCredentials As EncryptingCredentials

Dim instance As New SymmetricProofDescriptor(keySizeInBits, targetWrappingCredentials, requestorWrappingCredentials)

Syntax

'Declaration
Public Sub New ( _
    keySizeInBits As Integer, _
    targetWrappingCredentials As EncryptingCredentials, _
    requestorWrappingCredentials As EncryptingCredentials _
)
public SymmetricProofDescriptor (
    int keySizeInBits,
    EncryptingCredentials targetWrappingCredentials,
    EncryptingCredentials requestorWrappingCredentials
)
public:
SymmetricProofDescriptor (
    int keySizeInBits, 
    EncryptingCredentials^ targetWrappingCredentials, 
    EncryptingCredentials^ requestorWrappingCredentials
)
public SymmetricProofDescriptor (
    int keySizeInBits, 
    EncryptingCredentials targetWrappingCredentials, 
    EncryptingCredentials requestorWrappingCredentials
)
public function SymmetricProofDescriptor (
    keySizeInBits : int, 
    targetWrappingCredentials : EncryptingCredentials, 
    requestorWrappingCredentials : EncryptingCredentials
)

Parameters

  • 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.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

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

See Also

Reference

SymmetricProofDescriptor Class
SymmetricProofDescriptor Members
Microsoft.IdentityModel.Tokens Namespace