@azure/keyvault-certificates package

Classes

CertificateClient

The client to interact with the KeyVault certificates functionality

Interfaces

AdministratorContact

Details of the organization administrator of the certificate issuer.

BackupCertificateResult

The backup certificate result, containing the backup blob.

BeginCreateCertificateOptions

An interface representing the optional parameters that can be passed to <xref:beginCreateCertificate>

CertificateClientOptions

The optional parameters accepted by the KeyVault's KeyClient

CertificateContactAll

The shape of the contact information for the vault certificates.

CertificateIssuer

An interface representing the properties of an issuer.

CertificateOperation

A certificate operation is returned in case of asynchronous requests.

CertificateOperationError

The key vault server error.

CertificateOperationState

An interface representing the publicly available properties of the state of the CertificateOperationPoller.

CertificatePolicyProperties

An interface representing a certificate's policy (without the subject properties).

CertificatePollerOptions

An interface representing the optional parameters that can be passed to <xref:beginCreateCertificate>, <xref:beginDeleteCertificate> and <xref:beginRecoverDeletedCertificate>

CertificateProperties

An interface representing the properties of a certificate

CoreSubjectAlternativeNames

The subject alternate names of a X509 object.

CreateCertificateOptions

Options for <xref:createCertificate>.

CreateIssuerOptions

Options for <xref:createIssuer>.

DeletedCertificate

An interface representing a deleted certificate.

ErrorModel

The key vault server error.

ImportCertificateOptions

Options for <xref:importCertificate>.

IssuerAttributes

The attributes of an issuer managed by the Key Vault service.

IssuerCredentials

The credentials to be used for the certificate issuer.

IssuerParameters

Parameters for the issuer of the X509 component of a certificate.

IssuerProperties

An interface representing the properties of a certificate issuer

KeyVaultCertificate

An interface representing a certificate without the certificate's policy

KeyVaultCertificateWithPolicy

An interface representing a certificate with its policy

LifetimeAction

Action and its trigger that will be performed by Key Vault over the lifetime of a certificate.

ListDeletedCertificatesOptions

An interface representing optional parameters for CertificateClient paged operations passed to <xref:listDeletedCertificates>.

ListPropertiesOfCertificatesOptions

An interface representing optional parameters for CertificateClient paged operations passed to <xref:listPropertiesOfCertificates>.

PolicySubjectProperties

An interface representing the possible subject properties of a certificate's policy. The final type requires at least one of these properties to exist.

SubjectAlternativeNamesAll

An interface representing the alternative names of the subject of a certificate policy.

UpdateCertificateOptions

Options for <xref:updateCertificate>.

UpdateIssuerOptions

Options for <xref:updateIssuer>.

X509CertificateProperties

Properties of the X509 component of a certificate.

Type Aliases

ActionType

Defines values for ActionType. Possible values include: 'EmailContacts', 'AutoRenew'

ArrayOneOrMore

An array with one property at minimum.

BackupCertificateOptions

Options for <xref:backupCertificate>.

BeginDeleteCertificateOptions

An interface representing the optional parameters that can be passed to <xref:beginDeleteCertificate>

BeginRecoverDeletedCertificateOptions

An interface representing the optional parameters that can be passed to <xref:beginRecoverDeletedCertificate>

CertificateContact

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

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

CertificateKeyCurveName

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

CertificateKeyType

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

CertificatePolicy

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

CertificatePolicyAction

The action that will be executed.

CertificateTags

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

CreateCertificateState

The public representation of the CreateCertificatePoller operation state.

DeleteCertificateOperationOptions

Options for <xref:deleteCertificateOperation>.

DeleteCertificateState

The public representation of the DeleteCertificatePoller operation state.

DeleteContactsOptions

Options for <xref:deleteContacts>.

DeleteIssuerOptions

Options for <xref:deleteIssuer>.

DeletionRecoveryLevel

Defines values for DeletionRecoveryLevel. Possible values include: 'Purgeable', 'Recoverable+Purgeable', 'Recoverable', 'Recoverable+ProtectedSubscription', 'CustomizedRecoverable+Purgeable', 'CustomizedRecoverable', 'CustomizedRecoverable+ProtectedSubscription'

GetCertificateOperationOptions

Options for <xref:getCertificateOperation>.

GetCertificateOptions

Options for <xref:getCertificate>.

GetCertificatePolicyOptions

Options for <xref:getCertificatePolicy>.

GetCertificateVersionOptions

Options for <xref:getCertificateVersion>.

GetContactsOptions

Options for <xref:getContacts>.

GetDeletedCertificateOptions

Options for <xref:getDeletedCertificate>.

GetIssuerOptions

Options for <xref:getIssuer>.

GetPlainCertificateOperationOptions

Options for <xref:getPlainCertificateOperation>.

KVPollerLike

Deprecated KeyVault copy of core-lro's PollerLike.

KeyUsageType

Defines values for KeyUsageType. Possible values include: 'digitalSignature', 'nonRepudiation', 'keyEncipherment', 'dataEncipherment', 'keyAgreement', 'keyCertSign', 'cRLSign', 'encipherOnly', 'decipherOnly'

ListPropertiesOfCertificateVersionsOptions

An interface representing optional parameters for CertificateClient paged operations passed to <xref:listPropertiesOfCertificateVersions>.

ListPropertiesOfIssuersOptions

An interface representing optional parameters for CertificateClient paged operations passed to <xref:listPropertiesOfIssuers>.

MergeCertificateOptions

An interface representing optional parameters for <xref:mergeCertificate>.

PurgeDeletedCertificateOptions

Options for <xref:purgeDeletedCertificate>.

RecoverDeletedCertificateState

The public representation of the RecoverDeletedCertificatePoller operation state.

RequireAtLeastOne

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.
RestoreCertificateBackupOptions

An interface representing optional parameters for <xref:restoreCertificateBackup>.

SetContactsOptions

Options for <xref:setContacts>.

SubjectAlternativeNames

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

UpdateCertificatePolicyOptions

Options for <xref:updateCertificatePolicy>.

Enums

WellKnownIssuer

Well known issuers for choosing a default