Skip to content

OnixLabs.Security.Cryptography.IPublicKeyImportable

matthew edited this page May 27, 2026 · 1 revision

IPublicKeyImportable<T> Interface

Defines a cryptographic public key that can be imported from binary and RFC 7468 PEM-encoded data.

Namespace OnixLabs.Security.Cryptography
Assembly OnixLabs.Security.Cryptography.dll (NuGet)
Implements IPublicKeyRawImportable<T>, IPublicKeyPemImportable<T>

Definition

public interface IPublicKeyImportable<out T> :
    IPublicKeyRawImportable<T>,
    IPublicKeyPemImportable<T>
    where T : PublicKey;

Type Parameters

Parameter Description
T The type of PublicKey returned by the static import members. Declared covariant (out T). Must derive from PublicKey.

Remarks

IPublicKeyImportable<T> is a convenience composition interface. It declares no members of its own; implementing it is equivalent to implementing both constituent import interfaces. All import members are declared static abstract and are called on the concrete type.

The constituent interfaces are:

Interface Members Description
IPublicKeyRawImportable<T> Import(ReadOnlySpan<byte>), Import(ReadOnlySpan<byte>, out int), Import(IBinaryConvertible), Import(IBinaryConvertible, out int) Imports from raw binary.
IPublicKeyPemImportable<T> ImportPem(ReadOnlySpan<char>), ImportPem(ReadOnlySpan<char>, ReadOnlySpan<char>), ImportPem(ReadOnlySpan<char>, ReadOnlySpan<byte>) Imports from RFC 7468 PEM.

See Also

ONIXLabs .NET Library


Clone this wiki locally