KeyVaultSecretIdentifier Class
- java.
lang. Object - com.
azure. security. keyvault. secrets. models. KeyVaultSecretIdentifier
- com.
public final class KeyVaultSecretIdentifier
Information about a KeyVaultSecret parsed from the secret URL. You can use this information when calling methods of SecretClient or SecretAsyncClient.
Constructor Summary
| Constructor | Description |
|---|---|
| KeyVaultSecretIdentifier(String sourceId) |
Create a new KeyVaultSecretIdentifier from a given Key Vault identifier. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
getName()
Gets the name of the secret. |
| 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 secret. |
Methods inherited from java.lang.Object
Constructor Details
KeyVaultSecretIdentifier
public KeyVaultSecretIdentifier(String sourceId)
Create a new KeyVaultSecretIdentifier from a given Key Vault identifier.
Some examples:
- https://{key-vault-name}.vault.azure.net/secrets/{secret-name}
- https://{key-vault-name}.vault.azure.net/secrets/{secret-name}/pending
- https://{key-vault-name}.vault.azure.net/secrets/{secret-name}/{unique-version-id}
- https://{key-vault-name}.vault.azure.net/deletedsecrets/{deleted-secret-name}
Parameters:
Method Details
getName
public String getName()
Gets the name of the secret.
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 secret.
Returns: