X509SecurityToken Constructor (X509Certificate2, String)
Collapse the table of content
Expand the table of content

X509SecurityToken Constructor (X509Certificate2, String)

 

Initializes a new instance of the X509SecurityToken class using the specified X.509 certificate and unique identifier.

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

public X509SecurityToken(
	X509Certificate2 certificate,
	string id
)

Parameters

certificate
Type: System.Security.Cryptography.X509Certificates.X509Certificate2

An X509Certificate2 that contains the X.509 certificate. Sets the Certificate property.

id
Type: System.String

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

Exception Condition
ArgumentNullException

certificate is null.

-or-

id is null.

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