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


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.

Type: System.String

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

Exception Condition

rsa is null.


id is null.

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