SymmetricSignatureProvider Class

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

Inheritance Hierarchy

System.Object
  System.IdentityModel.Tokens.SignatureProvider
    System.IdentityModel.Tokens.SymmetricSignatureProvider

Namespace:  System.IdentityModel.Tokens
Assembly:  System.IdentityModel.Tokens.Jwt (in System.IdentityModel.Tokens.Jwt.dll)

Syntax

'Declaration
Public Class SymmetricSignatureProvider _
    Inherits SignatureProvider
public class SymmetricSignatureProvider : SignatureProvider
public ref class SymmetricSignatureProvider : public SignatureProvider
type SymmetricSignatureProvider =  
    class 
        inherit SignatureProvider 
    end
public class SymmetricSignatureProvider extends SignatureProvider

The SymmetricSignatureProvider type exposes the following members.

Constructors

  Name Description
Public method SymmetricSignatureProvider Creates an instance of a signature provider that uses an SymmetricSecurityKey to create and / or verify signatures over a array of bytes.

Top

Properties

  Name Description
Public property Context Gets or sets a user context for a SignatureProvider. (Inherited from SignatureProvider.)

Top

Methods

  Name Description
Public method Dispose() Calls Dispose and SuppressFinalize (Overrides SignatureProvider.Dispose().)
Protected method Dispose(Boolean) Disposes of internal components. (Overrides SignatureProvider.Dispose(Boolean).)
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Sign Produces a signature over the 'input' using the SymmetricSecurityKey and 'algorithm' passed to SymmetricSignatureProvider. (Overrides SignatureProvider.Sign(Byte[]).)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method Verify Verifies that a signature created over the 'input' matches the signature. Using SymmetricSecurityKey and 'algorithm' passed to SymmetricSignatureProvider. (Overrides SignatureProvider.Verify(Byte[], Byte[]).)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.IdentityModel.Tokens Namespace