BinaryKeyIdentifierClause Construtores
Definição
Inicializa uma nova instância da classe BinaryKeyIdentifierClause.Initializes a new instance of the BinaryKeyIdentifierClause class.
Sobrecargas
| BinaryKeyIdentifierClause(String, Byte[], Boolean) |
Inicializa uma nova instância da classe BinaryKeyIdentifierClause usando o tipo de cláusula de identificador de chave especificado, dados binários e um valor que indica se os dados binários devem ser clonados.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) |
Inicializa uma nova instância da classe BinaryKeyIdentifierClause usando o tipo de cláusula de identificador de chave especificado, dados binários, um valor que indica se os dados binários devem ser clonados, um nonce e o comprimento da chave.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)
Inicializa uma nova instância da classe BinaryKeyIdentifierClause usando o tipo de cláusula de identificador de chave especificado, dados binários e um valor que indica se os dados binários devem ser clonados.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)
Parâmetros
- clauseType
- String
O tipo de cláusula de identificador de chave.The key identifier clause type. Define o valor da propriedade ClauseType.Sets the value of the ClauseType property.
- identificationData
- Byte[]
Uma matriz de Byte que contém os dados binários que representam o identificador de chave.An array of Byte that contains the binary data that represents the key identifier.
- cloneBuffer
- Boolean
true para clonar a matriz passada para o parâmetro identificationData; caso contrário, false.true to clone the array passed into the identificationData parameter; otherwise, false.
Exceções
identificationData é null.identificationData is null.
identificationData tem tamanho zero.identificationData is zero length.
Aplica-se a
BinaryKeyIdentifierClause(String, Byte[], Boolean, Byte[], Int32)
Inicializa uma nova instância da classe BinaryKeyIdentifierClause usando o tipo de cláusula de identificador de chave especificado, dados binários, um valor que indica se os dados binários devem ser clonados, um nonce e o comprimento da chave.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)
Parâmetros
- clauseType
- String
O tipo de cláusula de identificador de chave.The key identifier clause type. Define o valor da propriedade ClauseType.Sets the value of the ClauseType property.
- identificationData
- Byte[]
Uma matriz de Byte que contém os dados binários que representam o identificador de chave.An array of Byte that contains the binary data that represents the key identifier. Define os dados binários retornados pelo método GetBuffer().Sets the binary data that is returned by the GetBuffer() method.
- cloneBuffer
- Boolean
true para clonar a matriz passada para o parâmetro identificationData; caso contrário, false.true to clone the array passed into the identificationData parameter; otherwise, false.
- derivationNonce
- Byte[]
Uma matriz de Byte que contém o nonce que foi usado para criar uma chave derivada.An array of Byte that contains the nonce that was used to create a derived key. Define o valor retornado pelo método GetDerivationNonce().Sets the value that is returned by the GetDerivationNonce() method.
- derivationLength
- Int32
O tamanho da chave derivada.The size of the derived key. Define o valor da propriedade DerivationLength.Sets the value of the DerivationLength property.
Exceções
identificationData é null.identificationData is null.
identificationData tem tamanho zero.identificationData is zero length.
Comentários
Quando os derivationNonce derivationLength parâmetros e são especificados, a chave derivada implícita é usada em vez da chave de segurança direta do token.When the derivationNonce and derivationLength parameters are specified, the implied derived key is used instead of the direct security key of the token.
Independentemente do valor passado para o cloneBuffer parâmetro, o GetBuffer método sempre retorna um clone da matriz passada para o identificationData parâmetro.Regardless of the value passed into the cloneBuffer parameter, the GetBuffer method always returns a clone of the array passed into the identificationData parameter.