RsaSecurityToken 构造函数

定义

初始化 RsaSecurityToken 类的新实例。

重载

RsaSecurityToken(RSA)

使用指定的 RSA 算法初始化 RsaSecurityToken 类的新实例。

RsaSecurityToken(RSA, String)

使用指定的 RSA 算法和唯一标识符初始化 RsaSecurityToken 类的新实例。

RsaSecurityToken(RSA)

使用指定的 RSA 算法初始化 RsaSecurityToken 类的新实例。

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)

参数

rsa
RSA

一个 RSA,表示能够创建非对称密钥的 RSA 算法。 设置 Rsa 属性的值。

例外

rsanull

注解

此构造函数为安全令牌生成唯一标识符并将其设置为 Id 属性的值。

适用于

RsaSecurityToken(RSA, String)

使用指定的 RSA 算法和唯一标识符初始化 RsaSecurityToken 类的新实例。

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)

参数

rsa
RSA

一个 RSA,表示能够创建非对称密钥的 RSA 算法。 设置 Rsa 属性的值。

id
String

安全令牌的唯一标识符。 设置 Id 属性的值。

例外

rsanull

idnull

适用于