@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 beginCreateCertificate(string, CertificatePolicy, BeginCreateCertificateOptions) |
CertificateClientOptions |
The optional parameters accepted by the KeyVault's CertificateClient |
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 beginCreateCertificate(string, CertificatePolicy, BeginCreateCertificateOptions), beginDeleteCertificate(string, CertificatePollerOptions) and beginRecoverDeletedCertificate(string, CertificatePollerOptions) |
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 createIssuer(string, string, CreateIssuerOptions). |
DeletedCertificate |
An interface representing a deleted certificate. |
ErrorModel |
The key vault server error model. |
ImportCertificateOptions |
Options for importCertificate(string, Uint8Array, ImportCertificateOptions). |
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 |
KeyVaultCertificateIdentifier |
Represents the segments that compose a Key Vault Certificate Id. |
KeyVaultCertificatePollOperationState |
An interface representing the public shape of the state of a Key Vault Certificate Poller's operations. |
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 listDeletedCertificates(ListDeletedCertificatesOptions). |
ListPropertiesOfCertificatesOptions |
An interface representing optional parameters for CertificateClient paged operations passed to listPropertiesOfCertificates(ListPropertiesOfCertificatesOptions). |
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. |
PollerLike |
Abstract representation of a poller, intended to expose just the minimal API that the user needs to work with. |
PollerLikeWithCancellation |
Abstract representation of a poller, intended to expose just the minimal API that the user needs to work with. |
SubjectAlternativeNamesAll |
An interface representing the alternative names of the subject of a certificate policy. |
UpdateCertificateOptions |
Options for <xref:updateCertificate>. |
UpdateIssuerOptions |
Options for updateIssuer(string, UpdateIssuerOptions). |
X509CertificateProperties |
Properties of the X509 component of a certificate. |
Type Aliases
ActionType |
Defines values for ActionType. |
ArrayOneOrMore |
An array with one property at minimum. |
BackupCertificateOptions |
Options for backupCertificate(string, OperationOptions). |
BeginDeleteCertificateOptions |
An interface representing the optional parameters that can be passed to beginDeleteCertificate(string, CertificatePollerOptions) |
BeginRecoverDeletedCertificateOptions |
An interface representing the optional parameters that can be passed to beginRecoverDeletedCertificate(string, CertificatePollerOptions) |
CancelCertificateOperationOptions |
Options for <xref:cancelCertificateOperation>. |
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 JsonWebKeyCurveName. Known values supported by the serviceP-256 |
CertificateKeyType |
Defines values for JsonWebKeyType. Known values supported by the serviceEC |
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 deleteCertificateOperation(string, OperationOptions). |
DeleteCertificateState |
The public representation of the DeleteCertificatePoller operation state. |
DeleteContactsOptions |
Options for deleteContacts(OperationOptions). |
DeleteIssuerOptions |
Options for deleteIssuer(string, OperationOptions). |
DeletionRecoveryLevel |
Defines values for DeletionRecoveryLevel. Known values supported by the servicePurgeable: Denotes a vault state in which deletion is an irreversible operation, without the possibility for recovery. This level corresponds to no protection being available against a Delete operation; the data is irretrievably lost upon accepting a Delete operation at the entity level or higher (vault, resource group, subscription etc.) |
GetCertificateOperationOptions |
Options for getCertificateOperation(string, CertificatePollerOptions). |
GetCertificateOptions |
Options for getCertificate(string, OperationOptions). |
GetCertificatePolicyOptions |
Options for getCertificatePolicy(string, OperationOptions). |
GetCertificateVersionOptions |
Options for getCertificateVersion(string, string, OperationOptions). |
GetContactsOptions |
Options for getContacts(OperationOptions). |
GetDeletedCertificateOptions |
Options for getDeletedCertificate(string, OperationOptions). |
GetIssuerOptions |
Options for getIssuer(string, OperationOptions). |
GetPlainCertificateOperationOptions |
Options for <xref:getPlainCertificateOperation>. |
ImportCertificatePolicy |
A type representing a certificate's policy for import which does not require a SAN or a Subject |
KVPollerLike |
Deprecated KeyVault copy of core-lro's PollerLike. |
KeyUsageType |
Defines values for KeyUsageType. Known values supported by the servicedigitalSignature |
ListPropertiesOfCertificateVersionsOptions |
An interface representing optional parameters for CertificateClient paged operations passed to listPropertiesOfCertificateVersions(string, OperationOptions). |
ListPropertiesOfIssuersOptions |
An interface representing optional parameters for CertificateClient paged operations passed to listPropertiesOfIssuers(OperationOptions). |
MergeCertificateOptions |
An interface representing optional parameters for mergeCertificate(string, Uint8Array[], OperationOptions). |
PurgeDeletedCertificateOptions |
Options for purgeDeletedCertificate(string, OperationOptions). |
RecoverDeletedCertificateState |
Deprecated: Public representation of the recovery of a deleted certificate poll operation |
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:
|
RestoreCertificateBackupOptions |
An interface representing optional parameters for restoreCertificateBackup(Uint8Array, OperationOptions). |
SetContactsOptions |
Options for setContacts(CertificateContact[], OperationOptions). |
SubjectAlternativeNames |
Alternatives to the subject property. If present, it should at least have one of the properties of SubjectAlternativeNamesAll. |
UpdateCertificatePolicyOptions |
Options for updateCertificatePolicy(string, CertificatePolicy, OperationOptions). |
Enums
KnownCertificateKeyCurveNames |
Known values of CertificateKeyCurveName that the service accepts. |
KnownCertificateKeyTypes |
Known values of CertificateKeyType that the service accepts. |
KnownDeletionRecoveryLevels |
Known values of DeletionRecoveryLevel that the service accepts. |
KnownKeyUsageTypes |
Known values of KeyUsageType that the service accepts. |
WellKnownIssuer |
Well known issuers for choosing a default |
Functions
parse |
Parses the given Key Vault Certificate Id. An example is: https://.vault.azure.net/certificates// On parsing the above Id, this function returns:
|
Function Details
parseKeyVaultCertificateIdentifier(string)
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>"
}
function parseKeyVaultCertificateIdentifier(id: string): KeyVaultCertificateIdentifier
Parameters
- id
-
string
The Id of the Key Vault Certificate.