ProtectedKey Constructors

Definition

Initializes a new instance of the ProtectedKey class.

Overloads

ProtectedKey(Byte[])

Initializes a new instance of the ProtectedKey class with no encryption.

ProtectedKey(Byte[], EncryptingCredentials)

Initializes a new instance of the ProtectedKey class using the specified encrypting credentials.

ProtectedKey(Byte[])

Initializes a new instance of the ProtectedKey class with no encryption.

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

Parameters

secret
Byte[]

An array of Byte that contains the key material to be protected.

Remarks

Use this constructor to send the key material in clear text. The WrappingCredentials property is set to null in the new ProtectedKey instance.

Applies to

ProtectedKey(Byte[], EncryptingCredentials)

Initializes a new instance of the ProtectedKey class using the specified encrypting credentials.

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

Parameters

secret
Byte[]

An array of Byte that contains the key material to be protected.

wrappingCredentials
EncryptingCredentials

An EncryptingCredentials that contains the credentials used to encrypt the key material.

Remarks

Use this constructor to send the key material encrypted.

Applies to