BinaryKeyIdentifierClause Constructors

Definition

Initializes a new instance of the BinaryKeyIdentifierClause class.

Overloads

BinaryKeyIdentifierClause(String, Byte[], Boolean)

Initializes a new instance of the BinaryKeyIdentifierClause class using the specified key identifier clause type, binary data and a value that indicates whether the binary data must be cloned.

BinaryKeyIdentifierClause(String, Byte[], Boolean, Byte[], Int32)

Initializes a new instance of the BinaryKeyIdentifierClause class using the specified key identifier clause type, binary data, a value that indicates whether the binary data must be cloned, a nonce and the key length.

BinaryKeyIdentifierClause(String, Byte[], Boolean)

Source:
BinaryKeyIdentifierClause.cs
Source:
BinaryKeyIdentifierClause.cs

Initializes a new instance of the BinaryKeyIdentifierClause class using the specified key identifier clause type, binary data and a value that indicates whether the binary data must be cloned.

C#
protected BinaryKeyIdentifierClause(string clauseType, byte[] identificationData, bool cloneBuffer);

Parameters

clauseType
String

The key identifier clause type. Sets the value of the ClauseType property.

identificationData
Byte[]

An array of Byte that contains the binary data that represents the key identifier.

cloneBuffer
Boolean

true to clone the array passed into the identificationData parameter; otherwise, false.

Exceptions

identificationData is null.

identificationData is zero length.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

BinaryKeyIdentifierClause(String, Byte[], Boolean, Byte[], Int32)

Source:
BinaryKeyIdentifierClause.cs
Source:
BinaryKeyIdentifierClause.cs

Initializes a new instance of the BinaryKeyIdentifierClause class using the specified key identifier clause type, binary data, a value that indicates whether the binary data must be cloned, a nonce and the key length.

C#
protected BinaryKeyIdentifierClause(string clauseType, byte[] identificationData, bool cloneBuffer, byte[] derivationNonce, int derivationLength);

Parameters

clauseType
String

The key identifier clause type. Sets the value of the ClauseType property.

identificationData
Byte[]

An array of Byte that contains the binary data that represents the key identifier. Sets the binary data that is returned by the GetBuffer() method.

cloneBuffer
Boolean

true to clone the array passed into the identificationData parameter; otherwise, false.

derivationNonce
Byte[]

An array of Byte that contains the nonce that was used to create a derived key. Sets the value that is returned by the GetDerivationNonce() method.

derivationLength
Int32

The size of the derived key. Sets the value of the DerivationLength property.

Exceptions

identificationData is null.

identificationData is zero length.

Remarks

When the derivationNonce and derivationLength parameters are specified, the implied derived key is used instead of the direct security key of the token.

Regardless of the value passed into the cloneBuffer parameter, the GetBuffer method always returns a clone of the array passed into the identificationData parameter.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1