Επεξεργασία

Κοινή χρήση μέσω


RequestedProofToken Constructors

Definition

Initializes a new instance of the RequestedProofToken class.

Overloads

RequestedProofToken(Byte[])

Initializes a new instance of the RequestedProofToken class using the specified key material.

RequestedProofToken(ProtectedKey)

Initializes a new instance of the RequestedProofToken class using the specified ProtectedKey object.

RequestedProofToken(String)

Initializes a new instance of the RequestedProofToken class using the specified computed key algorithm.

RequestedProofToken(Byte[], EncryptingCredentials)

Initializes a new instance of the RequestedProofToken class using the specified key material and encrypting credentials.

RequestedProofToken(Byte[])

Initializes a new instance of the RequestedProofToken class using the specified key material.

public:
 RequestedProofToken(cli::array <System::Byte> ^ secret);
public RequestedProofToken (byte[] secret);
new System.IdentityModel.Protocols.WSTrust.RequestedProofToken : byte[] -> System.IdentityModel.Protocols.WSTrust.RequestedProofToken
Public Sub New (secret As Byte())

Parameters

secret
Byte[]

An array of Byte that contains the key material.

Remarks

Use this constructor when the key is plain text.

Applies to

RequestedProofToken(ProtectedKey)

Initializes a new instance of the RequestedProofToken class using the specified ProtectedKey object.

public:
 RequestedProofToken(System::IdentityModel::Protocols::WSTrust::ProtectedKey ^ protectedKey);
public RequestedProofToken (System.IdentityModel.Protocols.WSTrust.ProtectedKey protectedKey);
new System.IdentityModel.Protocols.WSTrust.RequestedProofToken : System.IdentityModel.Protocols.WSTrust.ProtectedKey -> System.IdentityModel.Protocols.WSTrust.RequestedProofToken
Public Sub New (protectedKey As ProtectedKey)

Parameters

protectedKey
ProtectedKey

A ProtectedKey that represents the key, which can be either a binary secret or an encrypted key.

Exceptions

protectedKey is null.

Applies to

RequestedProofToken(String)

Initializes a new instance of the RequestedProofToken class using the specified computed key algorithm.

public:
 RequestedProofToken(System::String ^ computedKeyAlgorithm);
public RequestedProofToken (string computedKeyAlgorithm);
new System.IdentityModel.Protocols.WSTrust.RequestedProofToken : string -> System.IdentityModel.Protocols.WSTrust.RequestedProofToken
Public Sub New (computedKeyAlgorithm As String)

Parameters

computedKeyAlgorithm
String

A string that contains a URI that indicates the algorithm used to compute the session key in the combined entropy case.

Exceptions

computedKeyAlgorithm is null.

Remarks

Use this constructor in the case of combined entropy to specify the algorithm used to calculate the session key.

Applies to

RequestedProofToken(Byte[], EncryptingCredentials)

Initializes a new instance of the RequestedProofToken class using the specified key material and encrypting credentials.

public:
 RequestedProofToken(cli::array <System::Byte> ^ secret, System::IdentityModel::Tokens::EncryptingCredentials ^ wrappingCredentials);
public RequestedProofToken (byte[] secret, System.IdentityModel.Tokens.EncryptingCredentials wrappingCredentials);
new System.IdentityModel.Protocols.WSTrust.RequestedProofToken : byte[] * System.IdentityModel.Tokens.EncryptingCredentials -> System.IdentityModel.Protocols.WSTrust.RequestedProofToken
Public Sub New (secret As Byte(), wrappingCredentials As EncryptingCredentials)

Parameters

secret
Byte[]

An array of Byte that contains the key material.

wrappingCredentials
EncryptingCredentials

A EncryptingCredentials that represents the credentials used to encrypt the key material.

Remarks

Use this constructor when the key is encrypted.

Applies to