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

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

CertificateKeyCurveName

CertificateKeyCurveName: "P-256" | "P-384" | "P-521" | "P-256K"

Defines values for CertificateKeyCurveName. Possible values include: 'P-256', 'P-384', 'P-521', 'P-256K'

readonly

CertificateKeyType

CertificateKeyType: "EC" | "EC-HSM" | "RSA" | "RSA-HSM"

Defines values for CertificateKeyType. Possible values include: 'EC', 'EC-HSM', 'RSA', 'RSA-HSM'

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

CreateCertificateState: PollOperationState<KeyVaultCertificateWithPolicy>

The public representation of the CreateCertificatePoller operation state.

DeleteCertificateState

DeleteCertificateState: PollOperationState<DeletedCertificate>

The public representation of the DeleteCertificatePoller operation state.

RecoverDeletedCertificateState

RecoverDeletedCertificateState: PollOperationState<KeyVaultCertificateWithPolicy>

The public representation of the RecoverDeletedCertificatePoller operation state.

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

SubjectAlternativeNames

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

Variables

Const SERVICE_API_VERSION

SERVICE_API_VERSION: "7.0" = "7.0"

Const logger

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

The @azure/logger configuration for this package.

Functions

cancel

makeCertificateOperationPollOperation

makeCreateCertificatePollOperation

makeDeleteCertificatePollOperation

makeRecoverDeletedCertificatePollOperation

toCoreAttributes

toCorePolicy

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

    • id: string | undefined
    • policy: CertificatePolicy
    • Default value attributes: CertificateAttributes = {}

    Returns CoreCertificatePolicy

toPublicIssuer

toPublicPolicy

toString

update

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