Skip to content

OnixLabs.Security.Cryptography.IPublicKeyExportable

matthew edited this page May 27, 2026 · 1 revision

IPublicKeyExportable Interface

Defines a cryptographic public key that can be exported in binary and RFC 7468 PEM forms.

Namespace OnixLabs.Security.Cryptography
Assembly OnixLabs.Security.Cryptography.dll (NuGet)
Implements IPublicKeyRawExportable, IPublicKeyPemExportable

Definition

public interface IPublicKeyExportable :
    IPublicKeyRawExportable,
    IPublicKeyPemExportable;

Remarks

IPublicKeyExportable is a convenience composition interface. It declares no members of its own; implementing it is equivalent to implementing both constituent export interfaces. A type that implements it can export its public key material as raw bytes (Export) and as RFC 7468 PEM (ExportPem).

The constituent interfaces are:

Interface Member Returns Description
IPublicKeyRawExportable Export() byte[] Exports the raw public key bytes.
IPublicKeyPemExportable ExportPem() string Exports the public key in RFC 7468 PEM format.

See Also

ONIXLabs .NET Library


Clone this wiki locally