BinarySecretSecurityToken Konstruktorer

Definition

Initierar en ny instans av BinarySecretSecurityToken klassen.

Överlagringar

BinarySecretSecurityToken(Byte[])

Källa:
BinarySecretSecurityToken.cs
Källa:
BinarySecretSecurityToken.cs
Källa:
BinarySecretSecurityToken.cs

Initierar en ny instans av BinarySecretSecurityToken klassen.

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

Parametrar

key
Byte[]

En bytematris som representerar nyckeln.

Exempel

Följande kod visar hur du anropar konstruktorn.

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

End Function

Gäller för

BinarySecretSecurityToken(Int32)

Initierar en ny instans av BinarySecretSecurityToken klassen.

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)

Parametrar

keySizeInBits
Int32

Nyckelstorleken i bitar.

Gäller för

BinarySecretSecurityToken(String, Byte[])

Källa:
BinarySecretSecurityToken.cs
Källa:
BinarySecretSecurityToken.cs
Källa:
BinarySecretSecurityToken.cs

Initierar en ny instans av BinarySecretSecurityToken klassen.

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

Parametrar

id
String

Token-ID: t.

key
Byte[]

En bytematris som representerar nyckeln.

Gäller för

BinarySecretSecurityToken(String, Int32)

Initierar en ny instans av BinarySecretSecurityToken klassen.

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)

Parametrar

id
String

Token-ID: t.

keySizeInBits
Int32

Nyckelstorleken i bitar.

Undantag

Antingen keySizeInBits är det mindre än eller lika med noll, eller så är det större än eller lika med 512, eller så är det inte en multipel av 8.

Gäller för

BinarySecretSecurityToken(String, Byte[], Boolean)

Källa:
BinarySecretSecurityToken.cs
Källa:
BinarySecretSecurityToken.cs
Källa:
BinarySecretSecurityToken.cs

Initierar en ny instans av BinarySecretSecurityToken klassen.

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)

Parametrar

id
String

Token-ID: t.

key
Byte[]

En bytematris som representerar nyckeln.

allowCrypto
Boolean

En Boolean som anger om kryptografi ska tillåtas.

Undantag

key är null.

Gäller för

BinarySecretSecurityToken(String, Int32, Boolean)

Källa:
BinarySecretSecurityToken.cs
Källa:
BinarySecretSecurityToken.cs
Källa:
BinarySecretSecurityToken.cs

Initierar en ny instans av BinarySecretSecurityToken klassen.

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)

Parametrar

id
String

Token-ID: t.

keySizeInBits
Int32

Nyckelstorleken i bitar.

allowCrypto
Boolean

En Boolean som anger om kryptografi ska tillåtas.

Undantag

Antingen keySizeInBits är det mindre än eller lika med noll, eller så är det större än eller lika med 512, eller så är det inte en multipel av 8.

Gäller för