Edit

Share via


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

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.

protected:
 BinaryKeyIdentifierClause(System::String ^ clauseType, cli::array <System::Byte> ^ identificationData, bool cloneBuffer);
protected BinaryKeyIdentifierClause (string clauseType, byte[] identificationData, bool cloneBuffer);
new System.IdentityModel.Tokens.BinaryKeyIdentifierClause : string * byte[] * bool -> System.IdentityModel.Tokens.BinaryKeyIdentifierClause
Protected Sub New (clauseType As String, identificationData As Byte(), cloneBuffer As Boolean)

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

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

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.

protected:
 BinaryKeyIdentifierClause(System::String ^ clauseType, cli::array <System::Byte> ^ identificationData, bool cloneBuffer, cli::array <System::Byte> ^ derivationNonce, int derivationLength);
protected BinaryKeyIdentifierClause (string clauseType, byte[] identificationData, bool cloneBuffer, byte[] derivationNonce, int derivationLength);
new System.IdentityModel.Tokens.BinaryKeyIdentifierClause : string * byte[] * bool * byte[] * int -> System.IdentityModel.Tokens.BinaryKeyIdentifierClause
Protected Sub New (clauseType As String, identificationData As Byte(), cloneBuffer As Boolean, derivationNonce As Byte(), derivationLength As Integer)

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