Skip to main content

@peculiar/x509

Type Aliases

AccessItemTypes

AccessItemTypes: GeneralName | GeneralName[] | string | string[]


AsnDataStringFormat

AsnDataStringFormat: "asn" | "text" | "hex" | "base64" | "base64url"


ExtendedKeyUsageType

ExtendedKeyUsageType: asn1X509.ExtendedKeyUsage | string


GeneralNameType

GeneralNameType: typeof DNS | typeof DN | typeof EMAIL | typeof GUID | typeof IP | typeof URL | typeof UPN | typeof REGISTERED_ID


JsonAttributeAndValue

JsonAttributeAndValue: JsonAttributeAndStringValue | JsonAttributeAndObjectValue


JsonGeneralNames

JsonGeneralNames: JsonGeneralName[]


JsonName

JsonName: JsonAttributeAndStringValue[]

JSON array of Attribute and Value


JsonNameParams

JsonNameParams: JsonAttributeAndValue[]


MapForEachCallback()

MapForEachCallback: (value, key, map) => void

Parameters

value: Crypto

key: string

map: Map<string, Crypto>

Returns

void


PemStructEncodeParams

PemStructEncodeParams: AtLeast<PemStruct, "type" | "rawData">


Pkcs10CertificateRequestCreateParamsName

Pkcs10CertificateRequestCreateParamsName: string | JsonName | Name


PublicKeyType

PublicKeyType: PublicKey | CryptoKey | IPublicKeyContainer | BufferSource

Public key type. Represents a public key in different formats.


TextObjectItemType

TextObjectItemType: string | number | boolean | Date | BufferSource | TextObject | TextObject[] | TextObjectConvertible


X509CertificateCreateParams

X509CertificateCreateParams: X509CertificateCreateWithKeyParams | X509CertificateCreateWithSignatureParams


X509CertificateCreateParamsName

X509CertificateCreateParamsName: string | JsonName | Name


X509CertificatesExportType

X509CertificatesExportType: AsnExportType | "pem-chain"

Variables

cryptoProvider

const cryptoProvider: CryptoProvider

Singleton crypto provider


diAlgorithm

const diAlgorithm: "crypto.algorithm" = "crypto.algorithm"

Dependency Injection algorithm identifier


diAlgorithmProvider

const diAlgorithmProvider: "crypto.algorithmProvider" = "crypto.algorithmProvider"


diAsnSignatureFormatter

const diAsnSignatureFormatter: "crypto.signatureFormatter" = "crypto.signatureFormatter"

Dependency injection identifier for IAsnSignatureFormatter interface


idEd25519

const idEd25519: "1.3.101.112" = "1.3.101.112"


idEd448

const idEd448: "1.3.101.113" = "1.3.101.113"


idX25519

const idX25519: "1.3.101.110" = "1.3.101.110"


idX448

const idX448: "1.3.101.111" = "1.3.101.111"

Enumerations

Classes

Interfaces