Redigera

Dela via


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

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

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

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