RsaSecurityToken Constructors

Definition

Initializes a new instance of the RsaSecurityToken class.

Overloads

RsaSecurityToken(RSA)

Initializes a new instance of the RsaSecurityToken class using the specified RSA algorithm.

RsaSecurityToken(RSA, String)

Initializes a new instance of the RsaSecurityToken class using the specified RSA algorithm and unique identifier.

RsaSecurityToken(RSA)

Initializes a new instance of the RsaSecurityToken class using the specified RSA algorithm.

public RsaSecurityToken (System.Security.Cryptography.RSA rsa);

Parameters

rsa
RSA

A RSA that represents a RSA algorithm that is capable of creating an asymmetric key. Sets the value of the Rsa property.

Exceptions

rsa is null.

Remarks

This constructor generates a unique identifier for the security token and sets that to the value of the Id property.

Applies to

.NET Framework 4.8.1 ja muud versioonid
Toode Versioonid
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

RsaSecurityToken(RSA, String)

Initializes a new instance of the RsaSecurityToken class using the specified RSA algorithm and unique identifier.

public RsaSecurityToken (System.Security.Cryptography.RSA rsa, string id);

Parameters

rsa
RSA

A RSA that represents a RSA algorithm that is capable of creating an asymmetric key. Sets the value of the Rsa property.

id
String

A unique identifier of the security token. Sets the value of the Id property.

Exceptions

rsa is null.

-or-

id is null.

Applies to

.NET Framework 4.8.1 ja muud versioonid
Toode Versioonid
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1