@azure/keyvault-keys package
Classes
| CryptographyClient |
A client used to perform cryptographic operations on an Azure Key vault key or a local <xref:JsonWebKey>. |
| KeyClient |
The KeyClient provides methods to manage <xref:KeyVaultKey> in the Azure Key Vault. The client supports creating, retrieving, updating, deleting, purging, backing up, restoring and listing KeyVaultKeys. The client also supports listing <xref:DeletedKey> for a soft-delete enabled Azure Key Vault. |
Interfaces
| AesCbcDecryptParameters |
Decryption parameters for AES-CBC encryption algorithms. |
| AesCbcEncryptParameters |
Encryption parameters for AES-CBC encryption algorithms. |
| AesGcmDecryptParameters |
Decryption parameters for AES-GCM encryption algorithms. |
| AesGcmEncryptParameters |
Encryption parameters for AES-GCM encryption algorithms. |
| BackupKeyOptions |
Options for <xref:backupKey>. |
| BeginDeleteKeyOptions |
An interface representing the optional parameters that can be passed to <xref:beginDeleteKey> |
| BeginRecoverDeletedKeyOptions |
An interface representing the optional parameters that can be passed to <xref:beginRecoverDeletedKey> |
| CreateEcKeyOptions |
An interface representing the optional parameters that can be passed to <xref:createEcKey> |
| CreateKeyOptions |
An interface representing the optional parameters that can be passed to <xref:createKey> |
| CreateOctKeyOptions |
An interface representing the optional parameters that can be passed to <xref:createOctKey> |
| CreateRsaKeyOptions |
An interface representing the optional parameters that can be passed to <xref:createRsaKey> |
| CryptographyClientOptions |
The optional parameters accepted by the KeyVault's CryptographyClient |
| CryptographyOptions |
An interface representing the options of the cryptography API methods, go to the <xref:CryptographyClient> for more information. |
| DecryptOptions |
Options for <xref:decrypt>. |
| DecryptResult |
Result of the <xref:decrypt> operation. |
| DeletedKey |
An interface representing a deleted Key Vault Key. |
| EncryptOptions |
Options for <xref:encrypt>. |
| EncryptResult |
Result of the <xref:encrypt> operation. |
| GetDeletedKeyOptions |
Options for <xref:getDeletedKey>. |
| GetKeyOptions |
Options for <xref:getKey>. |
| ImportKeyOptions |
An interface representing the optional parameters that can be passed to <xref:importKey> |
| JsonWebKey |
As of http://tools.ietf.org/html/draft-ietf-jose-json-web-key-18 |
| KeyClientOptions |
The optional parameters accepted by the KeyVault's KeyClient |
| KeyPollerOptions |
An interface representing the optional parameters that can be passed to <xref:beginDeleteKey> and <xref:beginRecoverDeletedKey> |
| KeyProperties |
An interface representing the Properties of <xref:KeyVaultKey> |
| KeyVaultKey |
An interface representing a Key Vault Key, with its name, value and <xref:KeyProperties>. |
| KeyVaultKeyIdentifier |
Represents the segments that compose a Key Vault Key Id. |
| ListDeletedKeysOptions |
An interface representing optional parameters for KeyClient paged operations passed to <xref:listDeletedKeys>. |
| ListPropertiesOfKeyVersionsOptions |
An interface representing optional parameters for KeyClient paged operations passed to <xref:listPropertiesOfKeyVersions>. |
| ListPropertiesOfKeysOptions |
An interface representing optional parameters for KeyClient paged operations passed to <xref:listPropertiesOfKeys>. |
| PurgeDeletedKeyOptions |
Options for <xref:purgeDeletedKey>. |
| RestoreKeyBackupOptions |
Options for <xref:restoreKeyBackup>. |
| RsaDecryptParameters |
Decryption parameters for RSA encryption algorithms. |
| RsaEncryptParameters |
Encryption parameters for RSA encryption algorithms. |
| SignOptions |
Options for <xref:sign>. |
| SignResult |
Result of the <xref:sign> operation. |
| UnwrapKeyOptions |
Options for <xref:unwrapKey>. |
| UnwrapResult |
Result of the <xref:unwrap> operation. |
| UpdateKeyPropertiesOptions |
Options for <xref:updateKeyProperties>. |
| VerifyDataOptions |
Options for <xref:verifyData> |
| VerifyOptions |
Options for <xref:verify>. |
| VerifyResult |
Result of the <xref:verify> operation. |
| WrapKeyOptions |
Options for <xref:wrapKey>. |
| WrapResult |
Result of the <xref:wrap> operation. |
Type Aliases
| AesCbcEncryptionAlgorithm |
A union type representing all supported AES-CBC encryption algorithms. |
| AesGcmEncryptionAlgorithm |
A union type representing all supported AES-GCM encryption algorithms. |
| DecryptParameters |
A type representing all currently supported decryption parameters as they apply to different encryption algorithms. |
| DeletionRecoveryLevel |
Defines values for DeletionRecoveryLevel. Know 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.) |
| EncryptParameters |
A type representing all currently supported encryption parameters as they apply to different encryption algorithms. |
| EncryptionAlgorithm |
Defines values for JsonWebKeyEncryptionAlgorithm. Know values supported by the serviceRSA-OAEP |
| KeyCurveName |
Defines values for JsonWebKeyCurveName. Know values supported by the serviceP-256: The NIST P-256 elliptic curve, AKA SECG curve SECP256R1. |
| KeyOperation |
Defines values for JsonWebKeyOperation. Know values supported by the serviceencrypt |
| KeyType |
Defines values for JsonWebKeyType. Know values supported by the serviceEC: Elliptic Curve. |
| KeyWrapAlgorithm |
Supported algorithms for key wrapping/unwrapping |
| RsaEncryptionAlgorithm |
A union type representing all supported RSA encryption algorithms. |
| SignatureAlgorithm |
Defines values for JsonWebKeySignatureAlgorithm. Know values supported by the servicePS256: RSASSA-PSS using SHA-256 and MGF1 with SHA-256, as described in https://tools.ietf.org/html/rfc7518 |
Enums
| KnownDeletionRecoveryLevel |
Known values of <xref:DeletionRecoveryLevel> that the service accepts. |
| KnownEncryptionAlgorithms |
Known values of <xref:JsonWebKeyEncryptionAlgorithm> that the service accepts. |
| KnownKeyCurveNames |
Known values of <xref:JsonWebKeyCurveName> that the service accepts. |
| KnownKeyOperations |
Known values of <xref:JsonWebKeyOperation> that the service accepts. |
| KnownKeyTypes |
Known values of <xref:JsonWebKeyType> that the service accepts. |
| KnownSignatureAlgorithms |
Known values of <xref:JsonWebKeySignatureAlgorithm> that the service accepts. |
Functions
| parse |
Parses the given Key Vault Key Id. An example is: https://<keyvault-name>.vault.azure.net/keys/<key-name>/<unique-version-id> On parsing the above Id, this function returns:
|
Function Details
parseKeyVaultKeyIdentifier(string)
Parses the given Key Vault Key Id. An example is: https://<keyvault-name>.vault.azure.net/keys/<key-name>/<unique-version-id>
On parsing the above Id, this function returns:
{
sourceId: "https://<keyvault-name>.vault.azure.net/keys/<key-name>/<unique-version-id>",
vaultUrl: "https://<keyvault-name>.vault.azure.net",
version: "<unique-version-id>",
name: "<key-name>"
}
function parseKeyVaultKeyIdentifier(id: string)
Parameters
- id
-
string
The Id of the Key Vault Key.