SignatureProviderFactory Class

Creates SignatureProviders by specifying a SecurityKey and algorithm.Supports both AsymmetricSecurityKey and SymmetricSecurityKey.

Inheritance Hierarchy

System.Object
  System.IdentityModel.Tokens.SignatureProviderFactory

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

Syntax

'Declaration
Public Class SignatureProviderFactory
public class SignatureProviderFactory
public ref class SignatureProviderFactory
type SignatureProviderFactory =  class end
public class SignatureProviderFactory

The SignatureProviderFactory type exposes the following members.

Constructors

  Name Description
Public method SignatureProviderFactory

Top

Properties

  Name Description
Public propertyStatic member MinimumAsymmetricKeySizeInBitsForSigning Gets or sets the minimum AsymmetricSecurityKey.KeySize for creating signatures.
Public propertyStatic member MinimumAsymmetricKeySizeInBitsForVerifying Gets or sets the minimum AsymmetricSecurityKey.KeySize for verifying signatures.'value' is smaller than AbsoluteMinimumAsymmetricKeySizeInBitsForVerfying.
Public propertyStatic member MinimumSymmetricKeySizeInBits Gets or sets the minimum SymmetricSecurityKey.KeySize"/>.

Top

Methods

  Name Description
Public method CreateForSigning Creates a SignatureProvider that supports the SecurityKey and algorithm.
Public method CreateForVerifying Returns a SignatureProvider instance supports the SecurityKey and algorithm.
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 ReleaseProvider When finished with a SignatureProvider call this method for cleanup. The default behavior is to call Dispose
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Fields

  Name Description
Public fieldStatic member AbsoluteMinimumAsymmetricKeySizeInBitsForSigning This is the minimum AsymmetricSecurityKey.KeySize when creating signatures.
Public fieldStatic member AbsoluteMinimumAsymmetricKeySizeInBitsForVerfying This is the minimum AsymmetricSecurityKey.KeySize when verifying signatures.
Public fieldStatic member AbsoluteMinimumSymmetricKeySizeInBits This is the minimum SymmetricSecurityKey.KeySize when creating and verifying signatures.

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