Options
All
  • Public
  • Public/Protected
  • All
Menu

@azure/keyvault-certificates

Package version

Index

Enumerations

Classes

Interfaces

Type aliases

Variables

Functions

Object literals

Type aliases

ArrayOneOrMore

ArrayOneOrMore<T>: { 0: T } & Array<T>

An array with one property at minimum.

Type parameters

  • T

BackupCertificateOptions

BackupCertificateOptions: coreHttp.OperationOptions

Options for backupCertificate.

BeginDeleteCertificateOptions

BeginDeleteCertificateOptions: CertificatePollerOptions

An interface representing the optional parameters that can be passed to beginDeleteCertificate

BeginRecoverDeletedCertificateOptions

BeginRecoverDeletedCertificateOptions: CertificatePollerOptions

An interface representing the optional parameters that can be passed to beginRecoverDeletedCertificate

CancelCertificateOperationOptions

CancelCertificateOperationOptions: coreHttp.OperationOptions

Options for {@link cancelCertificateOperation}.

CertificateContact

CertificateContact: RequireAtLeastOne<CertificateContactAll> | undefined

The contact information for the vault certificates. Each contact will have at least just one of the properties of CertificateContactAll, which are: emailAddress, name or phone.

CertificateContentType

CertificateContentType: "application/x-pem-file" | "application/x-pkcs12" | undefined

Defines values for contentType. Possible values include: 'application/x-pem-file', 'application/x-pkcs12'

readonly

CertificatePolicy

An type representing a certificate's policy with at least one of the subject properties.

CertificatePolicyAction

CertificatePolicyAction: "EmailContacts" | "AutoRenew"

The action that will be executed.

CertificateTags

CertificateTags: {}

An interface representing the shape of the Certificate Tags. The tags are just string key-value pairs.

Type declaration

  • [propertyName: string]: string

CreateCertificateState

The public representation of the CreateCertificatePoller operation state.

DeleteCertificateOperationOptions

DeleteCertificateOperationOptions: coreHttp.OperationOptions

DeleteCertificateOptions

DeleteCertificateOptions: coreHttp.OperationOptions

Options for {@link deleteCertificate}.

internal

DeleteCertificateState

The public representation of the DeleteCertificatePoller operation state.

DeleteContactsOptions

DeleteContactsOptions: coreHttp.OperationOptions

Options for deleteContacts.

DeleteIssuerOptions

DeleteIssuerOptions: coreHttp.OperationOptions

Options for deleteIssuer.

GetCertificateOperationOptions

GetCertificateOperationOptions: CertificatePollerOptions

GetCertificateOptions

GetCertificateOptions: coreHttp.OperationOptions

Options for getCertificate.

GetCertificatePolicyOptions

GetCertificatePolicyOptions: coreHttp.OperationOptions

Options for getCertificatePolicy.

GetCertificateVersionOptions

GetCertificateVersionOptions: coreHttp.OperationOptions

Options for getCertificateVersion.

GetContactsOptions

GetContactsOptions: coreHttp.OperationOptions

Options for getContacts.

GetDeletedCertificateOptions

GetDeletedCertificateOptions: coreHttp.OperationOptions

Options for getDeletedCertificate.

GetIssuerOptions

GetIssuerOptions: coreHttp.OperationOptions

Options for getIssuer.

GetPlainCertificateOperationOptions

GetPlainCertificateOperationOptions: coreHttp.OperationOptions

Options for {@link getPlainCertificateOperation}.

ImportCertificatePolicy

ImportCertificatePolicy: CertificatePolicyProperties & Partial<PolicySubjectProperties>

A type representing a certificate's policy for import which does not require a SAN or a Subject

KVPollerLike

KVPollerLike<TState, TResult>: PollerLike<TState, TResult>

Deprecated KeyVault copy of core-lro's PollerLike.

Type parameters

  • TState: PollOperationState<TResult>

  • TResult

ListPropertiesOfCertificateVersionsOptions

ListPropertiesOfCertificateVersionsOptions: coreHttp.OperationOptions

An interface representing optional parameters for CertificateClient paged operations passed to listPropertiesOfCertificateVersions.

ListPropertiesOfIssuersOptions

ListPropertiesOfIssuersOptions: coreHttp.OperationOptions

An interface representing optional parameters for CertificateClient paged operations passed to listPropertiesOfIssuers.

MergeCertificateOptions

MergeCertificateOptions: coreHttp.OperationOptions

An interface representing optional parameters for mergeCertificate.

ParsedWWWAuthenticate

ParsedWWWAuthenticate: {}

Type declaration

PurgeDeletedCertificateOptions

PurgeDeletedCertificateOptions: coreHttp.OperationOptions

RecoverDeletedCertificateOptions

RecoverDeletedCertificateOptions: coreHttp.OperationOptions

An interface representing optional parameters for {@link recoverDeletedCertificate}.

internal

RecoverDeletedCertificateState

Deprecated: Public representation of the recovery of a deleted certificate poll operation

RequireAtLeastOne

RequireAtLeastOne<T>: {}[keyof T]

RequireAtLeastOne helps create a type where at least one of the properties of an interface (can be any property) is required to exist.

This works because of TypeScript's utility types: https://www.typescriptlang.org/docs/handbook/utility-types.html Let's examine it:

  • [K in keyof T]-? this property (K) is valid only if it has the same name as any property of T.
  • Required<Pick<T, K>> makes a new type from T with just the current property in the iteration, and marks it as required
  • Partial<Pick<T, Exclude<keyof T, K>>> makes a new type with all the properties of T, except from the property K.
  • & is what unites the type with only one required property from Required<...> with all the optional properties from Partial<...>.
  • [keyof T] ensures that only properties of T are allowed.

Type parameters

  • T

RestoreCertificateBackupOptions

RestoreCertificateBackupOptions: coreHttp.OperationOptions

An interface representing optional parameters for restoreCertificateBackup.

SetContactsOptions

SetContactsOptions: coreHttp.OperationOptions

Options for setContacts.

SubjectAlternativeNames

Alternatives to the subject property. If present, it should at least have one of the properties of SubjectAlternativeNamesAll.

UpdateCertificatePolicyOptions

UpdateCertificatePolicyOptions: coreHttp.OperationOptions

ValidParsedWWWAuthenticateProperties

ValidParsedWWWAuthenticateProperties: "authorization" | "resource" | "scope"

Variables

Const LATEST_API_VERSION

LATEST_API_VERSION: "7.2" = "7.2"

The latest supported KeyVault service API version

Const SDK_VERSION

SDK_VERSION: string = "4.2.0-beta.3"

Const logger

logger: any = createClientLogger("keyvault-certificates")

The @azure/logger configuration for this package.

Const withTrace

withTrace: TracedFunction = createTraceFunction("Azure.KeyVault.Certificates.CertificateClient")
internal
internal
internal
internal

Functions

base64ToUint8Array

  • base64ToUint8Array(value: string): Uint8Array

challengeBasedAuthenticationPolicy

  • challengeBasedAuthenticationPolicy(credential: TokenCredential): RequestPolicyFactory

cleanState

coreContactsToCertificateContacts

createTraceFunction

  • Returns a function that can be used for tracing options.

    example

    const withTrace = createTraceFunction("Azure.KeyVault.Certificates.CertificateClient")

    internal

    Parameters

    • prefix: string

      The prefix to use, likely the name of the class / client.

    Returns TracedFunction

getCertificateFromCertificateBundle

  • getCertificateFromCertificateBundle(certificateBundle: CertificateBundle): KeyVaultCertificate

getCertificateOperationFromCoreOperation

  • getCertificateOperationFromCoreOperation(certificateName: string, vaultUrl: string, operation: CoreCertificateOperation): CertificateOperation

getCertificateWithPolicyFromCertificateBundle

getDeletedCertificateFromDeletedCertificateBundle

  • getDeletedCertificateFromDeletedCertificateBundle(certificateBundle: DeletedCertificateBundle): DeletedCertificate

getDeletedCertificateFromItem

getPropertiesFromCertificateBundle

parseCertificateBytes

  • Parses the PFX or ASCII PEM formatted value of the certificate containing both the X.509 certificates and the private key into a Base64 encoded string.

    internal

    Parameters

    • certificateBytes: Uint8Array

      The PFX or ASCII PEM formatted value of the certificate containing both the X.509 certificates and the private key

    • contentType: CertificateContentType

      "application/x-pem-file", "application/x-pkcs12" or undefined

    Returns string

parseKeyVaultCertificateId

  • Parses the given Key Vault Certificate Id. An example is:

    https://.vault.azure.net/certificates//

    On parsing the above Id, this function returns:

      {
         sourceId: "https://<keyvault-name>.vault.azure.net/certificates/<certificate-name>/<unique-version-id>",
         vaultUrl: "https://<keyvault-name>.vault.azure.net",
         version: "<unique-version-id>",
         name: "<certificate-name>"
      }
    internal

    Parameters

    • id: string

      The Id of the Key Vault Certificate.

    Returns KeyVaultCertificateId

parseKeyvaultIdentifier

parseWWWAuthenticate

  • Parses an WWW-Authenticate response. This transforms a string value like: Bearer authorization="some_authorization", resource="https://some.url" into an object like: { authorization: "some_authorization", resource: "https://some.url" }

    Parameters

    • wwwAuthenticate: string

      String value in the WWW-Authenticate header

    Returns ParsedWWWAuthenticate

stringToUint8Array

  • stringToUint8Array(value: string): Uint8Array

toAscii

  • toAscii(bytes: Uint8Array): string

toBase64

  • toBase64(bytes: Uint8Array): string

toCoreAttributes

toCorePolicy

  • toCorePolicy(id: string | undefined, policy: CertificatePolicy, attributes?: CertificateAttributes): CoreCertificatePolicy

toPublicIssuer

toPublicPolicy

Object literals

Const DefaultCertificatePolicy

DefaultCertificatePolicy: object

The DefaultCertificatePolicy exports values that are useful as default parameters to methods that modify the certificate's policy.

issuerName

issuerName: string = "Self"

subject

subject: string = "cn=MyCert"

Generated using TypeDoc