KeyVaultKeyIdentifier Class
- java.
lang. Object - com.
azure. security. keyvault. keys. models. KeyVaultKeyIdentifier
- com.
public final class KeyVaultKeyIdentifier
Information about a KeyVaultKey parsed from the key URL. You can use this information when calling methods of KeyClient or KeyAsyncClient.
Constructor Summary
Constructor | Description |
---|---|
KeyVaultKeyIdentifier(String sourceId) |
Create a new KeyVaultKeyIdentifier from a given Key Vault identifier. |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getName()
Gets the name of the key. |
String |
getSourceId()
Gets the key identifier used to create this object. |
String |
getVaultUrl()
Gets the URL of the Key Vault. |
String |
getVersion()
Gets the optional version of the key. |
Methods inherited from java.lang.Object
Constructor Details
KeyVaultKeyIdentifier
public KeyVaultKeyIdentifier(String sourceId)
Create a new KeyVaultKeyIdentifier from 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:
Method Details
getName
public String getName()
Gets the name of the key.
Returns:
getSourceId
public String getSourceId()
Gets the key identifier used to create this object.
Returns:
getVaultUrl
public String getVaultUrl()
Gets the URL of the Key Vault.
Returns:
getVersion
public String getVersion()
Gets the optional version of the key.
Returns:
Applies to
Azure SDK for Java