RsaSecurityToken Constructor (RSA)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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