Partilhar via


SecurityKey Class

Definition

Base class for Security Key.

public abstract class SecurityKey
type SecurityKey = class
Public MustInherit Class SecurityKey
Inheritance
SecurityKey
Derived

Constructors

SecurityKey()

Default constructor

Properties

CryptoProviderFactory

Gets or sets CryptoProviderFactory.

KeyId

Gets the key id of this SecurityKey.

KeySize

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

Methods

CanComputeJwkThumbprint()

Determines whether the SecurityKey can compute a JWK thumbprint.

ComputeJwkThumbprint()

Computes a sha256 hash over the SecurityKey.

IsSupportedAlgorithm(String)

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

ToString()

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

Applies to