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
DelegateAlgorithmFactory(IJwtAlgorithm)
Creates an instance of DelegateAlgorithmFactory with supplied algorithm.
public DelegateAlgorithmFactory(IJwtAlgorithm algorithm)
Parameters
algorithm
IJwtAlgorithm
Exceptions
DelegateAlgorithmFactory(Func<IJwtAlgorithm>)
Creates an instance of DelegateAlgorithmFactory with supplied delegate to an algorithm.
public DelegateAlgorithmFactory(Func<IJwtAlgorithm> algFactory)
Parameters
algFactory
Func<IJwtAlgorithm>
Exceptions
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
Methods
Create(JwtDecoderContext)
Creates an AlgorithmFactory using the provided algorithm enum.
public IJwtAlgorithm Create(JwtDecoderContext context)
Parameters
context
JwtDecoderContextThe captured context during validation of JWT inside JwtDecoder