Skip to content

OnixLabs.Security.Cryptography.IPublicKeyPemExportable

matthew edited this page May 27, 2026 · 1 revision

IPublicKeyPemExportable Interface

Defines a cryptographic public key that can be exported in RFC 7468 PEM form.

Namespace OnixLabs.Security.Cryptography
Assembly OnixLabs.Security.Cryptography.dll (NuGet)

Definition

public interface IPublicKeyPemExportable
{
    string ExportPem();
}

Remarks

IPublicKeyPemExportable defines the contract for exporting a public key's material in RFC 7468 PEM format. The PEM label is typically PUBLIC KEY (SPKI — SubjectPublicKeyInfo), as opposed to the algorithm-native raw bytes exposed by IPublicKeyRawExportable.

This interface is composed into IPublicKeyExportable alongside IPublicKeyRawExportable. Callers that need both export forms should depend on IPublicKeyExportable rather than the two leaf interfaces individually.

Methods

Member Returns Description
ExportPem() string Exports the public key in RFC 7468 PEM format.

ExportPem()

string ExportPem();

Exports the cryptographic public key data in RFC 7468 PEM format (typically PUBLIC KEY, that is, SPKI).

Returns — A string containing the RFC 7468 PEM-encoded public key.

See Also

ONIXLabs .NET Library


Clone this wiki locally