Class KeyVaultKeyIdentifier
java.lang.Object
com.azure.security.keyvault.keys.models.KeyVaultKeyIdentifier
Information about a
KeyVaultKey parsed from the key URL. You can use this information when calling methods
of KeyClient or KeyAsyncClient.-
Constructor Summary
ConstructorsConstructorDescriptionKeyVaultKeyIdentifier(String sourceId) Create a newKeyVaultKeyIdentifierfrom a given Key Vault identifier. -
Method Summary
Modifier and TypeMethodDescriptiongetName()Gets the name of the key.Gets the key identifier used to create this object.Gets the URL of the Key Vault.Gets the optional version of the key.
-
Constructor Details
-
KeyVaultKeyIdentifier
Create a newKeyVaultKeyIdentifierfrom a given Key Vault identifier.Some examples:
- https://{key-vault-name}.vault.azure.net/keys/{key-name}
- https://{key-vault-name}.vault.azure.net/keys/{key-name}/pending
- https://{key-vault-name}.vault.azure.net/keys/{key-name}/{unique-version-id}
- https://{key-vault-name}.vault.azure.net/deletedkeys/{deleted-key-name}
- Parameters:
sourceId- The identifier to extract information from.- Throws:
IllegalArgumentException- IfsourceIdis an invalid Key Vault identifier.NullPointerException- IfsourceIdisnull.
-
-
Method Details
-
getSourceId
Gets the key identifier used to create this object.- Returns:
- The key identifier.
-
getVaultUrl
-
getName
-
getVersion
-