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

RsaSecurityToken Constructor (RSA)


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

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

public RsaSecurityToken(
	RSA 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.

Exception Condition

rsa is null.

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

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft