RsaSecurityKey Class

Definition

Represents a Rsa security key.

public class RsaSecurityKey : Microsoft.IdentityModel.Tokens.AsymmetricSecurityKey
type RsaSecurityKey = class
    inherit AsymmetricSecurityKey
Public Class RsaSecurityKey
Inherits AsymmetricSecurityKey
Inheritance

Constructors

RsaSecurityKey(RSA)

Initializes a new instance of the RsaSecurityKey class.

RsaSecurityKey(RSAParameters)

Initializes a new instance of the RsaSecurityKey class.

Properties

CryptoProviderFactory

Gets or sets CryptoProviderFactory.

(Inherited from SecurityKey)
HasPrivateKey
Obsolete.

Gets a bool indicating if a private key exists.

KeyId

Gets the key id of this SecurityKey.

(Inherited from SecurityKey)
KeySize

Gets RSA key size.

Parameters

RSAParameters used to initialize the key.

PrivateKeyStatus

Gets an enum indicating if a private key exists.

Rsa

RSA instance used to initialize the key.

Methods

CanComputeJwkThumbprint()

Determines whether the RsaSecurityKey can compute a JWK thumbprint.

ComputeJwkThumbprint()

Computes a sha256 hash over the RsaSecurityKey.

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