SymmetricSignatureProvider SymmetricSignatureProvider SymmetricSignatureProvider Class

Definition

Provides signing and verifying operations using a SymmetricSecurityKey and specifying an algorithm.

public class SymmetricSignatureProvider : Microsoft.IdentityModel.Tokens.SignatureProvider
type SymmetricSignatureProvider = class
    inherit SignatureProvider
Public Class SymmetricSignatureProvider
Inherits SignatureProvider
Inheritance
SymmetricSignatureProviderSymmetricSignatureProviderSymmetricSignatureProvider

Constructors

SymmetricSignatureProvider(SecurityKey, String) SymmetricSignatureProvider(SecurityKey, String) SymmetricSignatureProvider(SecurityKey, String)

Initializes a new instance of the SymmetricSignatureProvider class that uses an SecurityKey to create and / or verify signatures over a array of bytes.

SymmetricSignatureProvider(SecurityKey, String, Boolean) SymmetricSignatureProvider(SecurityKey, String, Boolean) SymmetricSignatureProvider(SecurityKey, String, Boolean)

Initializes a new instance of the SymmetricSignatureProvider class that uses an SecurityKey to create and / or verify signatures over a array of bytes.

Fields

DefaultMinimumSymmetricKeySizeInBits DefaultMinimumSymmetricKeySizeInBits DefaultMinimumSymmetricKeySizeInBits

This is the minimum SymmetricSecurityKey.KeySize when creating and verifying signatures.

Properties

Algorithm Algorithm Algorithm

Gets the signature algorithm.

(Inherited from SignatureProvider)
Context Context Context

Gets or sets a user context for a SignatureProvider.

(Inherited from SignatureProvider)
CryptoProviderCache CryptoProviderCache CryptoProviderCache

Gets or sets the CryptoProviderCache that is associated with this SignatureProvider

(Inherited from SignatureProvider)
Key Key Key

Gets the SecurityKey.

(Inherited from SignatureProvider)
MinimumSymmetricKeySizeInBits MinimumSymmetricKeySizeInBits MinimumSymmetricKeySizeInBits

Gets or sets the minimum SymmetricSecurityKey.KeySize"/>.

WillCreateSignatures WillCreateSignatures WillCreateSignatures

Gets or sets a bool indicating if this SignatureProvider is expected to create signatures.

(Inherited from SignatureProvider)

Methods

Dispose() Dispose() Dispose()

Calls Dispose(Boolean) and SuppressFinalize(Object)

(Inherited from SignatureProvider)
Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

Disposes of internal components.

GetKeyBytes(SecurityKey) GetKeyBytes(SecurityKey) GetKeyBytes(SecurityKey)

Called to obtain the byte[] needed to create a Microsoft.IdentityModel.Tokens.SymmetricSignatureProvider.KeyedHashAlgorithm

GetKeyedHashAlgorithm(Byte[], String) GetKeyedHashAlgorithm(Byte[], String) GetKeyedHashAlgorithm(Byte[], String)

Returns the Microsoft.IdentityModel.Tokens.SymmetricSignatureProvider.KeyedHashAlgorithm.

Sign(Byte[]) Sign(Byte[]) Sign(Byte[])

Produces a signature over the 'input' using the SymmetricSecurityKey and 'algorithm' passed to SymmetricSignatureProvider(SecurityKey, String).

Verify(Byte[], Byte[]) Verify(Byte[], Byte[]) Verify(Byte[], Byte[])

Verifies that a signature created over the 'input' matches the signature. Using SymmetricSecurityKey and 'algorithm' passed to SymmetricSignatureProvider(SecurityKey, String).

Verify(Byte[], Byte[], Int32) Verify(Byte[], Byte[], Int32) Verify(Byte[], Byte[], Int32)

Verifies that a signature created over the 'input' matches the signature. Using SymmetricSecurityKey and 'algorithm' passed to SymmetricSignatureProvider(SecurityKey, String).

Extension Methods

IsDefined(Object) IsDefined(Object) IsDefined(Object)

Determines if a certain property is defined or not.

IsNull(Object) IsNull(Object) IsNull(Object)

Determines if a certain property is null or not.

IsPrimitive(Object) IsPrimitive(Object) IsPrimitive(Object)

Determines if a certain property is of premitive JSON type.

Applies to