Table of Contents

Class DelegateAlgorithmFactory

Namespace
JWT.Algorithms
Assembly
Coherence.JWT.dll

Implements IAlgorithmFactory by returning the supplied IJwtAlgorithm while ignoring parameters.

public sealed class DelegateAlgorithmFactory : IAlgorithmFactory
Inheritance
DelegateAlgorithmFactory
Implements

Constructors

DelegateAlgorithmFactory(IAlgorithmFactory)

Creates an instance of DelegateAlgorithmFactory with supplied algorithm factory.

public DelegateAlgorithmFactory(IAlgorithmFactory algFactory)

Parameters

algFactory IAlgorithmFactory

Exceptions

ArgumentNullException

DelegateAlgorithmFactory(IJwtAlgorithm)

Creates an instance of DelegateAlgorithmFactory with supplied algorithm.

public DelegateAlgorithmFactory(IJwtAlgorithm algorithm)

Parameters

algorithm IJwtAlgorithm

Exceptions

ArgumentNullException

DelegateAlgorithmFactory(Func<IJwtAlgorithm>)

Creates an instance of DelegateAlgorithmFactory with supplied delegate to an algorithm.

public DelegateAlgorithmFactory(Func<IJwtAlgorithm> algFactory)

Parameters

algFactory Func<IJwtAlgorithm>

Exceptions

ArgumentNullException

DelegateAlgorithmFactory(Func<JwtDecoderContext, IJwtAlgorithm>)

Creates an instance of DelegateAlgorithmFactory with supplied delegate to an algorithm with a context.

public DelegateAlgorithmFactory(Func<JwtDecoderContext, IJwtAlgorithm> algFactory)

Parameters

algFactory Func<JwtDecoderContext, IJwtAlgorithm>

Exceptions

ArgumentNullException

Methods

Create(JwtDecoderContext)

Creates an AlgorithmFactory using the provided algorithm enum.

public IJwtAlgorithm Create(JwtDecoderContext context)

Parameters

context JwtDecoderContext

The captured context during validation of JWT inside JwtDecoder

Returns

IJwtAlgorithm