RsaSecurityToken Constructor (RSA, String)
Collapse the table of content
Expand the table of content

RsaSecurityToken Constructor (RSA, String)

 

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

Namespace:   System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public RsaSecurityToken(
	RSA rsa,
	string id
)

Parameters

rsa
Type: System.Security.Cryptography.RSA

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

id
Type: System.String

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

Exception Condition
ArgumentNullException

rsa is null.

-or-

id is null.

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft