Udostępnij za pośrednictwem


BinarySecretSecurityToken Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy BinarySecretSecurityToken.

Przeciążenia

BinarySecretSecurityToken(Byte[])

Inicjuje nowe wystąpienie klasy BinarySecretSecurityToken.

BinarySecretSecurityToken(Int32)

Inicjuje nowe wystąpienie klasy BinarySecretSecurityToken.

BinarySecretSecurityToken(String, Byte[])

Inicjuje nowe wystąpienie klasy BinarySecretSecurityToken.

BinarySecretSecurityToken(String, Int32)

Inicjuje nowe wystąpienie klasy BinarySecretSecurityToken.

BinarySecretSecurityToken(String, Byte[], Boolean)

Inicjuje nowe wystąpienie klasy BinarySecretSecurityToken.

BinarySecretSecurityToken(String, Int32, Boolean)

Inicjuje nowe wystąpienie klasy BinarySecretSecurityToken.

BinarySecretSecurityToken(Byte[])

Inicjuje nowe wystąpienie klasy BinarySecretSecurityToken.

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())

Parametry

key
Byte[]

Tablica bajtów reprezentująca klucz.

Przykłady

Poniższy kod ilustruje sposób wywoływania konstruktora.

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

End Function

Dotyczy

BinarySecretSecurityToken(Int32)

Inicjuje nowe wystąpienie klasy BinarySecretSecurityToken.

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)

Parametry

keySizeInBits
Int32

Rozmiar klucza w bitach.

Dotyczy

BinarySecretSecurityToken(String, Byte[])

Inicjuje nowe wystąpienie klasy BinarySecretSecurityToken.

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())

Parametry

id
String

Identyfikator tokenu.

key
Byte[]

Tablica bajtów reprezentująca klucz.

Dotyczy

BinarySecretSecurityToken(String, Int32)

Inicjuje nowe wystąpienie klasy BinarySecretSecurityToken.

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)

Parametry

id
String

Identyfikator tokenu.

keySizeInBits
Int32

Rozmiar klucza w bitach.

Wyjątki

Wartość keySizeInBits jest mniejsza lub równa zero albo jest większa lub równa 512 albo nie jest wielokrotna 8.

Dotyczy

BinarySecretSecurityToken(String, Byte[], Boolean)

Inicjuje nowe wystąpienie klasy BinarySecretSecurityToken.

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)

Parametry

id
String

Identyfikator tokenu.

key
Byte[]

Tablica bajtów reprezentująca klucz.

allowCrypto
Boolean

Element Boolean wskazujący, czy zezwalać na kryptografię.

Wyjątki

key to null.

Dotyczy

BinarySecretSecurityToken(String, Int32, Boolean)

Inicjuje nowe wystąpienie klasy BinarySecretSecurityToken.

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)

Parametry

id
String

Identyfikator tokenu.

keySizeInBits
Int32

Rozmiar klucza w bitach.

allowCrypto
Boolean

Element Boolean wskazujący, czy zezwalać na kryptografię.

Wyjątki

Wartość keySizeInBits jest mniejsza lub równa zero albo jest większa lub równa 512 albo nie jest wielokrotna 8.

Dotyczy