Compartir a través de


X509SecurityKey Constructors

Definition

Overloads

X509SecurityKey(X509Certificate2)

Instantiates a X509SecurityKey using a X509Certificate2

X509SecurityKey(X509Certificate2, String)

Instantiates a X509SecurityKey using a X509Certificate2.

X509SecurityKey(X509Certificate2)

Instantiates a X509SecurityKey using a X509Certificate2

public X509SecurityKey (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate);
new Microsoft.IdentityModel.Tokens.X509SecurityKey : System.Security.Cryptography.X509Certificates.X509Certificate2 -> Microsoft.IdentityModel.Tokens.X509SecurityKey
Public Sub New (certificate As X509Certificate2)

Parameters

certificate
X509Certificate2

The X509Certificate2 to use.

Exceptions

if certificate is null.

Applies to

X509SecurityKey(X509Certificate2, String)

Instantiates a X509SecurityKey using a X509Certificate2.

public X509SecurityKey (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate, string keyId);
new Microsoft.IdentityModel.Tokens.X509SecurityKey : System.Security.Cryptography.X509Certificates.X509Certificate2 * string -> Microsoft.IdentityModel.Tokens.X509SecurityKey
Public Sub New (certificate As X509Certificate2, keyId As String)

Parameters

certificate
X509Certificate2

The X509Certificate2 to use.

keyId
String

The value to set for the KeyId

Exceptions

if keyId is null or empty.

Applies to