Entropy Constructor (Byte[], SecurityToken)
Initializes a new instance of the Entropy class with the specified entropy value, encrypted using the specified security token.
Namespace: Microsoft.Web.Services3.Security
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)
Usage
'Usage
Dim key() As Byte
Dim encryptingToken As SecurityToken
Dim entropy1 As New Entropy(key, encryptingToken)
Syntax
'Declaration
Public Sub New( _
ByVal key() As Byte, _
ByVal encryptingToken As SecurityToken _
)
public Entropy(
byte[] key,
SecurityToken encryptingToken
);
public:
Entropy(
array<unsigned char>^ key,
SecurityToken^ encryptingToken
);
public Entropy(
ubyte[] key,
SecurityToken encryptingToken
);
public function Entropy(
key : Byte[],
encryptingToken : SecurityToken
);
Parameters
- key
An array of type Byte that contains the entropy value.
- encryptingToken
The SecurityToken that is used to encrypt the entropy value.
Exceptions
Exception type | Condition |
---|---|
ArgumentNullException | key is null. -or- key is zero length. |
ArgumentNullException | encryptingToken is null. |
Remarks
This constructor sets the value of the EncryptedKey property to an EncryptedKey that contains the entropy value specified in the key parameter. When the Entropy class is serialized into XML, the entropy value is encrypted using the security token specified in the encryptingToken parameter and placed in an <EncryptedKey> child element. Typically, the encryptingToken parameter is the public key of the security token service, so that only the security token service can decrypt the entropy value.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server
Target Platforms
See Also
Reference
Entropy Class
Entropy Members
Microsoft.Web.Services3.Security Namespace
BinarySecret
BinarySecret