Skip to content

Abblix.Utils Namespace

Classes
AddressValidatingHttpMessageHandlerThe message-handler half of protecting a server-initiated request whose address came from outside: it refuses redirects and re-checks the address immediately before every send, leaving only the policy - which addresses are refused - to the derived handler.
ArrayExtensionsAllocation-explicit array helpers: each operation returns a freshly allocated array sized to the result. Prefer these over LINQ when the caller needs a concrete T[] without an extra ToArray() step, or when copying byte buffers via System.Buffer.BlockCopy(System.Array,System.Int32,System.Array,System.Int32,System.Int32) matters.
Base32Provides methods for encoding and decoding data using Base32 and Base32hex formats as defined in RFC 4648. Supports optional padding and ignores padding characters during decoding.
CertificateIdRepresents the identifiers for a certificate, including paths to certificate and key files, and an optional password.
CryptoRandomProvides cryptographic random number generation.
DistributedCacheExtensionsExtension methods for Microsoft.Extensions.Caching.Distributed.IDistributedCache providing atomic operations.
EnumerableExtensionsProvides extension methods for IEnumerable<T> for common operations.
EnumFlagExtensionsExtension methods for [Flags] enum values that complement the BCL surface. Named with the Flag qualifier so it does not collide with the very common EnumExtensions class name used by other libraries (e.g. Fido2NetLib.EnumExtensions), which would surface as CS0104 in any consumer that imports both namespaces.
HexConverterProvides a static method for converting a byte array to its hexadecimal string representation.
HttpServerUtilityProvides utility methods for encoding and decoding URL tokens.
ObjectExtensionsProvides extension methods for objects to ensure non-null values.
ParametersBuilderProvides a builder for constructing and manipulating query strings or URI fragment parts.
PrivateNetworksTells an address inside the deployment's own network from one on the public internet.
Result<TSuccess,TFailure>Represents a result of an operation that can either succeed with a value of type TSuccess or fail with a value of type TFailure.
ResultExtensionsProvides extension methods for working with Result<TSuccess,TFailure> types.
StringExtensionsThe class provides extension methods for enhancing the functionality and ease of use of strings.
UriBuilderA wrapper around System.UriBuilder, providing enhanced functionality for URI manipulation, specifically for handling query strings and fragments.
UriExtensionsHelpers for adding parameters to a URI's query or fragment and for extracting standard parts (origin, trailing slash). Empty or null parameter values are dropped rather than serialized as bare keys, matching the OAuth 2.0 / OpenID Connect convention for absent parameters.
WwwAuthenticateBuilds WWW-Authenticate challenge values: the HTTP grammar, not any one protocol's vocabulary of errors.
Structs
SanitizedA type that sanitizes a given string by removing control characters and escaping special characters to prevent log injection attacks.
Interfaces
ICertificateProviderResolves an System.Security.Cryptography.X509Certificates.X509Certificate2 from a logical CertificateId, abstracting away the physical source (file system, certificate store, secret manager, etc.). Implementations are expected to be thread-safe and to surface format or access errors as System.InvalidOperationException.