Partilhar via


SymmetricSecurityKey Class

Definition

Represents a symmetric security key.

public class SymmetricSecurityKey : Microsoft.IdentityModel.Tokens.SecurityKey
type SymmetricSecurityKey = class
    inherit SecurityKey
Public Class SymmetricSecurityKey
Inherits SecurityKey
Inheritance
SymmetricSecurityKey

Constructors

SymmetricSecurityKey(Byte[])

Returns a new instance of SymmetricSecurityKey instance.

Properties

CryptoProviderFactory

Gets or sets CryptoProviderFactory.

(Inherited from SecurityKey)
Key

Gets the byte array of the key.

KeyId

Gets the key id of this SecurityKey.

(Inherited from SecurityKey)
KeySize

Gets the key size.

Methods

CanComputeJwkThumbprint()

Determines whether the SymmetricSecurityKey can compute a JWK thumbprint.

ComputeJwkThumbprint()

Computes a sha256 hash over the SymmetricSecurityKey.

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