Skip to content

ImportKeyErrorDetails ​

ImportKeyErrorDetails ​

Safe structured context: names only, never input bytes, passwords or backend prose.

ts
interface ImportKeyErrorDetails {
	readonly stage: ImportKeyStage;
	readonly reason: ImportKeyReason;
	readonly container?: "pkcs8" | "pkcs1" | "sec1" | "spki" | "jwk";
}

Properties

  • readonly stage: ImportKeyStage — Stage that refused the input.
  • readonly reason: ImportKeyReason — Stable refusal reason within the stage.
  • readonly container?: "pkcs8" | "pkcs1" | "sec1" | "spki" | "jwk" — Container selected by the importer, when known.

Released under the MIT License.