BinarySecretSecurityToken Construtores

Definição

Inicializa uma nova instância da classe BinarySecretSecurityToken.Initializes a new instance of the BinarySecretSecurityToken class.

Sobrecargas

BinarySecretSecurityToken(Byte[])

Inicializa uma nova instância da classe BinarySecretSecurityToken.Initializes a new instance of the BinarySecretSecurityToken class.

BinarySecretSecurityToken(Int32)

Inicializa uma nova instância da classe BinarySecretSecurityToken.Initializes a new instance of the BinarySecretSecurityToken class.

BinarySecretSecurityToken(String, Byte[])

Inicializa uma nova instância da classe BinarySecretSecurityToken.Initializes a new instance of the BinarySecretSecurityToken class.

BinarySecretSecurityToken(String, Int32)

Inicializa uma nova instância da classe BinarySecretSecurityToken.Initializes a new instance of the BinarySecretSecurityToken class.

BinarySecretSecurityToken(String, Byte[], Boolean)

Inicializa uma nova instância da classe BinarySecretSecurityToken.Initializes a new instance of the BinarySecretSecurityToken class.

BinarySecretSecurityToken(String, Int32, Boolean)

Inicializa uma nova instância da classe BinarySecretSecurityToken.Initializes a new instance of the BinarySecretSecurityToken class.

BinarySecretSecurityToken(Byte[])

Inicializa uma nova instância da classe BinarySecretSecurityToken.Initializes a new instance of the BinarySecretSecurityToken class.

public:
 BinarySecretSecurityToken(cli::array <System::Byte> ^ key);
public BinarySecretSecurityToken (byte[] key);
new System.ServiceModel.Security.Tokens.BinarySecretSecurityToken : byte[] -> System.ServiceModel.Security.Tokens.BinarySecretSecurityToken
Public Sub New (key As Byte())

Parâmetros

key
Byte[]

Uma matriz de bytes que representa a chave.A byte-array that represents the key.

Exemplos

O código a seguir ilustra como chamar o construtor.The following code illustrates how to call the constructor.

BinarySecretSecurityToken CreateProofToken(byte[] proofKey)
{
    return new BinarySecretSecurityToken(proofKey);
}
Function CreateProofToken(ByVal proofKey() As Byte) As BinarySecretSecurityToken
    Return New BinarySecretSecurityToken(proofKey)

End Function

Aplica-se a

BinarySecretSecurityToken(Int32)

Inicializa uma nova instância da classe BinarySecretSecurityToken.Initializes a new instance of the BinarySecretSecurityToken class.

public:
 BinarySecretSecurityToken(int keySizeInBits);
public BinarySecretSecurityToken (int keySizeInBits);
new System.ServiceModel.Security.Tokens.BinarySecretSecurityToken : int -> System.ServiceModel.Security.Tokens.BinarySecretSecurityToken
Public Sub New (keySizeInBits As Integer)

Parâmetros

keySizeInBits
Int32

O tamanho da chave em bits.The key size in bits.

Aplica-se a

BinarySecretSecurityToken(String, Byte[])

Inicializa uma nova instância da classe BinarySecretSecurityToken.Initializes a new instance of the BinarySecretSecurityToken class.

public:
 BinarySecretSecurityToken(System::String ^ id, cli::array <System::Byte> ^ key);
public BinarySecretSecurityToken (string id, byte[] key);
new System.ServiceModel.Security.Tokens.BinarySecretSecurityToken : string * byte[] -> System.ServiceModel.Security.Tokens.BinarySecretSecurityToken
Public Sub New (id As String, key As Byte())

Parâmetros

id
String

A ID to token.The token ID.

key
Byte[]

Uma matriz de bytes que representa a chave.A byte-array that represents the key.

Aplica-se a

BinarySecretSecurityToken(String, Int32)

Inicializa uma nova instância da classe BinarySecretSecurityToken.Initializes a new instance of the BinarySecretSecurityToken class.

public:
 BinarySecretSecurityToken(System::String ^ id, int keySizeInBits);
public BinarySecretSecurityToken (string id, int keySizeInBits);
new System.ServiceModel.Security.Tokens.BinarySecretSecurityToken : string * int -> System.ServiceModel.Security.Tokens.BinarySecretSecurityToken
Public Sub New (id As String, keySizeInBits As Integer)

Parâmetros

id
String

A ID to token.The token ID.

keySizeInBits
Int32

O tamanho da chave em bits.The key size in bits.

Exceções

keySizeInBits é menor ou igual a zero ou é maior ou igual a 512 ou não é um múltiplo de 8.Either keySizeInBits is less than or equal to zero, or it is greater than or equal to 512, or it is not a multiple of 8.

Aplica-se a

BinarySecretSecurityToken(String, Byte[], Boolean)

Inicializa uma nova instância da classe BinarySecretSecurityToken.Initializes a new instance of the BinarySecretSecurityToken class.

protected:
 BinarySecretSecurityToken(System::String ^ id, cli::array <System::Byte> ^ key, bool allowCrypto);
protected BinarySecretSecurityToken (string id, byte[] key, bool allowCrypto);
new System.ServiceModel.Security.Tokens.BinarySecretSecurityToken : string * byte[] * bool -> System.ServiceModel.Security.Tokens.BinarySecretSecurityToken
Protected Sub New (id As String, key As Byte(), allowCrypto As Boolean)

Parâmetros

id
String

A ID to token.The token ID.

key
Byte[]

Uma matriz de bytes que representa a chave.A byte-array that represents the key.

allowCrypto
Boolean

Um Boolean que indica se a criptografia deve ser permitida.A Boolean that indicates whether to allow cryptography.

Exceções

key é null.key is null.

Aplica-se a

BinarySecretSecurityToken(String, Int32, Boolean)

Inicializa uma nova instância da classe BinarySecretSecurityToken.Initializes a new instance of the BinarySecretSecurityToken class.

protected:
 BinarySecretSecurityToken(System::String ^ id, int keySizeInBits, bool allowCrypto);
protected BinarySecretSecurityToken (string id, int keySizeInBits, bool allowCrypto);
new System.ServiceModel.Security.Tokens.BinarySecretSecurityToken : string * int * bool -> System.ServiceModel.Security.Tokens.BinarySecretSecurityToken
Protected Sub New (id As String, keySizeInBits As Integer, allowCrypto As Boolean)

Parâmetros

id
String

A ID to token.The token ID.

keySizeInBits
Int32

O tamanho da chave em bits.The key size in bits.

allowCrypto
Boolean

Um Boolean que indica se a criptografia deve ser permitida.A Boolean that indicates whether to allow cryptography.

Exceções

keySizeInBits é menor ou igual a zero ou é maior ou igual a 512 ou não é um múltiplo de 8.Either keySizeInBits is less than or equal to zero, or it is greater than or equal to 512, or it is not a multiple of 8.

Aplica-se a