Table of Contents

Class RSAlgorithmFactory

Namespace
JWT.Algorithms
Assembly
Coherence.JWT.dll
public sealed class RSAlgorithmFactory : JwtAlgorithmFactory, IAlgorithmFactory
Inheritance
RSAlgorithmFactory
Implements
Inherited Members

Constructors

RSAlgorithmFactory(Func<X509Certificate2>)

Creates an instance of the RSAlgorithmFactory class using the provided X509Certificate2.

public RSAlgorithmFactory(Func<X509Certificate2> certFactory)

Parameters

certFactory Func<X509Certificate2>

Func that returns X509Certificate2 which will be used to instantiate RS256Algorithm

RSAlgorithmFactory(RSA)

Creates an instance of RSAlgorithmFactory using the provided public key only.

public RSAlgorithmFactory(RSA publicKey)

Parameters

publicKey RSA

The public key for verifying the data.

RSAlgorithmFactory(RSA, RSA)

Creates an instance of RSAlgorithmFactory using the provided pair of public and private keys.

public RSAlgorithmFactory(RSA publicKey, RSA privateKey)

Parameters

publicKey RSA

The public key for verifying the data.

privateKey RSA

The private key for signing the data.

Methods

Create(JwtAlgorithmName)

protected override IJwtAlgorithm Create(JwtAlgorithmName algorithm)

Parameters

algorithm JwtAlgorithmName

Returns

IJwtAlgorithm