RsaSecurityToken Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.