SymmetricSecurityKey Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a symmetric security key.
public class SymmetricSecurityKey : Microsoft.IdentityModel.Tokens.SecurityKey
type SymmetricSecurityKey = class
inherit SecurityKey
Public Class SymmetricSecurityKey
Inherits SecurityKey
- Inheritance
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 |
ToString() |
Returns the formatted string: GetType(), KeyId: 'value', InternalId: 'value'. (Inherited from SecurityKey) |