Skip to content

OnixLabs.Security.Cryptography.IPrivateKeyImportable

matthew edited this page May 27, 2026 · 1 revision

IPrivateKeyImportable<T> Interface

Defines a cryptographic private key that can be imported from raw binary, PKCS #8 binary, and RFC 7468 PEM-encoded data.

Namespace OnixLabs.Security.Cryptography
Assembly OnixLabs.Security.Cryptography.dll (NuGet)
Implements IPrivateKeyRawImportable<T>, IPrivateKeyPkcs8Importable<T>, IPrivateKeyPemImportable<T>

Definition

public interface IPrivateKeyImportable<out T> :
    IPrivateKeyRawImportable<T>,
    IPrivateKeyPkcs8Importable<T>,
    IPrivateKeyPemImportable<T>
    where T : PrivateKey;

Type Parameters

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

Remarks

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

This interface is used by IEcdhPrivateKey, IEcdsaPrivateKey, and IRsaPrivateKey. IEddsaPrivateKey does not implement this composite interface; it instead lists the three constituent import interfaces individually.

See Also

ONIXLabs .NET Library


Clone this wiki locally