Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • CertificateStorage

Implements

  • CryptoCertificateStorage

Index

Constructors

constructor

Properties

Protected provider

provider: SocketCrypto

Methods

clear

  • clear(): Promise<void>

exportCert

  • exportCert(format: "raw", item: CryptoCertificate): Promise<ArrayBuffer>
  • exportCert(format: "pem", item: CryptoCertificate): Promise<string>
  • exportCert(format: CryptoCertificateFormat, item: CryptoCertificate): Promise<ArrayBuffer | string>

getCRL

  • getCRL(url: string): Promise<ArrayBuffer>

getChain

  • getChain(value: CryptoCertificate): Promise<ChainItemProto[]>

getItem

  • getItem(key: string): Promise<CryptoCertificate>
  • getItem(key: string, algorithm: Algorithm, keyUsages: KeyUsage[]): Promise<CryptoCertificate>

getOCSP

  • getOCSP(url: string, request: BufferSource, options?: OCSPRequestOptions): Promise<ArrayBuffer>

hasItem

  • hasItem(item: CryptoCertificate): Promise<boolean>

importCert

  • importCert(format: "x509", data: BufferSource, algorithm: ImportAlgorithms, keyUsages: KeyUsage[]): Promise<CryptoX509Certificate>
  • importCert(format: "request", data: BufferSource, algorithm: ImportAlgorithms, keyUsages: KeyUsage[]): Promise<CryptoX509CertificateRequest>
  • importCert(format: "raw" | "x509" | "request", data: BufferSource, algorithm: ImportAlgorithms, keyUsages: KeyUsage[]): Promise<CryptoCertificate>
  • importCert(format: "pem", data: string, algorithm: ImportAlgorithms, keyUsages: KeyUsage[]): Promise<CryptoCertificate>
  • importCert(format: CryptoCertificateFormat | "x509" | "request", data: BufferSource | string, algorithm: ImportAlgorithms, keyUsages: KeyUsage[]): Promise<CryptoCertificate>
  • Parameters

    • format: "x509"
    • data: BufferSource
    • algorithm: ImportAlgorithms
    • keyUsages: KeyUsage[]

    Returns Promise<CryptoX509Certificate>

  • Parameters

    • format: "request"
    • data: BufferSource
    • algorithm: ImportAlgorithms
    • keyUsages: KeyUsage[]

    Returns Promise<CryptoX509CertificateRequest>

  • Parameters

    • format: "raw" | "x509" | "request"
    • data: BufferSource
    • algorithm: ImportAlgorithms
    • keyUsages: KeyUsage[]

    Returns Promise<CryptoCertificate>

  • Parameters

    • format: "pem"
    • data: string
    • algorithm: ImportAlgorithms
    • keyUsages: KeyUsage[]

    Returns Promise<CryptoCertificate>

  • Parameters

    • format: CryptoCertificateFormat | "x509" | "request"
    • data: BufferSource | string
    • algorithm: ImportAlgorithms
    • keyUsages: KeyUsage[]

    Returns Promise<CryptoCertificate>

indexOf

  • indexOf(item: CryptoCertificate): Promise<string | null>

keys

  • keys(): Promise<string[]>

Protected prepareCertItem

  • prepareCertItem(item: CryptoCertificateProto): Promise<CryptoCertificateProto>

removeItem

  • removeItem(key: string): Promise<void>

setItem

  • setItem(value: CryptoCertificate): Promise<string>

Generated using TypeDoc