Bewerken

Share via


Entropy Constructors

Definition

Initializes a new instance of the Entropy class.

Overloads

Entropy(Byte[])

Initializes a new instance of the Entropy class for sending entropy in binary secret format.

Entropy(ProtectedKey)

Initializes a new instance of the Entropy class with the specified protected key.

Entropy(Int32)

Initializes a new instance of the Entropy class with randomly generated bytes.

Entropy(Byte[], EncryptingCredentials)

Initializes a new instance of the Entropy class for sending entropy in encrypted key format.

Entropy(Byte[])

Initializes a new instance of the Entropy class for sending entropy in binary secret format.

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

Parameters

secret
Byte[]

An array of bytes that contains the key material.

Applies to

Entropy(ProtectedKey)

Initializes a new instance of the Entropy class with the specified protected key.

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

Parameters

protectedKey
ProtectedKey

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

Applies to

Entropy(Int32)

Initializes a new instance of the Entropy class with randomly generated bytes.

public:
 Entropy(int entropySizeInBits);
public Entropy (int entropySizeInBits);
new System.IdentityModel.Protocols.WSTrust.Entropy : int -> System.IdentityModel.Protocols.WSTrust.Entropy
Public Sub New (entropySizeInBits As Integer)

Parameters

entropySizeInBits
Int32

The entropySizeInBits of the key material inside the entropy.

Applies to

Entropy(Byte[], EncryptingCredentials)

Initializes a new instance of the Entropy class for sending entropy in encrypted key format.

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

Parameters

secret
Byte[]

An array of bytes that contains the key material.

wrappingCredentials
EncryptingCredentials

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

Applies to