AsymmetricSecurityKey Class

Definition

Base class for a SecurityKey that contains Asymmetric key material.

public abstract class AsymmetricSecurityKey : Microsoft.IdentityModel.Tokens.SecurityKey
type AsymmetricSecurityKey = class
    inherit SecurityKey
Public MustInherit Class AsymmetricSecurityKey
Inherits SecurityKey
Inheritance
AsymmetricSecurityKey
Derived

Constructors

AsymmetricSecurityKey()

Initializes a new instance of the AsymmetricSecurityKey class.

Properties

CryptoProviderFactory

Gets or sets CryptoProviderFactory.

(Inherited from SecurityKey)
HasPrivateKey
Obsolete.

This must be overridden to get a bool indicating if a private key exists.

KeyId

Gets the key id of this SecurityKey.

(Inherited from SecurityKey)
KeySize

This must be overridden to get the size of this SecurityKey.

(Inherited from SecurityKey)
PrivateKeyStatus

Gets a value indicating the existence of the private key.

Methods

CanComputeJwkThumbprint()

Determines whether the SecurityKey can compute a JWK thumbprint.

(Inherited from SecurityKey)
ComputeJwkThumbprint()

Computes a sha256 hash over the SecurityKey.

(Inherited from SecurityKey)
IsSupportedAlgorithm(String)

Checks if CryptoProviderFactory can perform the cryptographic operation specified by the algorithm with this SecurityKey.

(Inherited from SecurityKey)
ToString()

Returns the formatted string: GetType(), KeyId: 'value', InternalId: 'value'.

(Inherited from SecurityKey)

Applies to