-
Notifications
You must be signed in to change notification settings - Fork 0
simpleotp.hashalgorithmproviders
Namespace: SimpleOTP
Provides methods for registering and retrieving providers.
public static class HashAlgorithmProvidersInheritance Object → HashAlgorithmProviders
Attributes NullableContextAttribute, NullableAttribute
Registers a new provider.
public static void AddProvider(OtpAlgorithm algorithm, KeyedHashAlgorithm algorithmProvider)algorithm OtpAlgorithm
The algorithm to register.
algorithmProvider KeyedHashAlgorithm
The provider to register.
Retrieves a provider.
public static KeyedHashAlgorithm GetProvider(OtpAlgorithm algorithm)algorithm OtpAlgorithm
The algorithm to retrieve.
KeyedHashAlgorithm
The provider, or null if not found.
Removes a provider.
public static void RemoveProvider(OtpAlgorithm algorithm)algorithm OtpAlgorithm
The algorithm to remove.
Determines whether a provider is registered.
public static bool IsRegistered(OtpAlgorithm algorithm)algorithm OtpAlgorithm
The algorithm to check.
Boolean
true if the provider is registered; otherwise, false.
Removes all registered providers.
public static void ClearProviders()Remarks:
This method also clears default providers. Use with caution.
©2025 Eugene Fox. Licensed under MIT license