Udostępnij za pośrednictwem


RsaSecurityToken Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy RsaSecurityToken.

Przeciążenia

RsaSecurityToken(RSA)

Inicjuje RsaSecurityToken nowe wystąpienie klasy przy użyciu określonego algorytmu RSA.

RsaSecurityToken(RSA, String)

Inicjuje RsaSecurityToken nowe wystąpienie klasy przy użyciu określonego algorytmu RSA i unikatowego identyfikatora.

RsaSecurityToken(RSA)

Inicjuje RsaSecurityToken nowe wystąpienie klasy przy użyciu określonego algorytmu RSA.

public:
 RsaSecurityToken(System::Security::Cryptography::RSA ^ rsa);
public RsaSecurityToken (System.Security.Cryptography.RSA rsa);
new System.IdentityModel.Tokens.RsaSecurityToken : System.Security.Cryptography.RSA -> System.IdentityModel.Tokens.RsaSecurityToken
Public Sub New (rsa As RSA)

Parametry

rsa
RSA

Element RSA reprezentujący algorytm RSA, który może utworzyć klucz asymetryczny. Ustawia wartość Rsa właściwości.

Wyjątki

rsa to null.

Uwagi

Ten konstruktor generuje unikatowy identyfikator tokenu zabezpieczającego i ustawia go na wartość Id właściwości.

Dotyczy

RsaSecurityToken(RSA, String)

Inicjuje RsaSecurityToken nowe wystąpienie klasy przy użyciu określonego algorytmu RSA i unikatowego identyfikatora.

public:
 RsaSecurityToken(System::Security::Cryptography::RSA ^ rsa, System::String ^ id);
public RsaSecurityToken (System.Security.Cryptography.RSA rsa, string id);
new System.IdentityModel.Tokens.RsaSecurityToken : System.Security.Cryptography.RSA * string -> System.IdentityModel.Tokens.RsaSecurityToken
Public Sub New (rsa As RSA, id As String)

Parametry

rsa
RSA

Element RSA reprezentujący algorytm RSA, który może utworzyć klucz asymetryczny. Ustawia wartość Rsa właściwości.

id
String

Unikatowy identyfikator tokenu zabezpieczającego. Ustawia wartość Id właściwości.

Wyjątki

rsa to null.

-lub-

id to null.

Dotyczy