public final class KeyVaultSecretIdentifier extends Object
KeyVaultSecret parsed from the secret URL. You can use this information when calling
methods of SecretClient or SecretAsyncClient.| Constructor and Description |
|---|
KeyVaultSecretIdentifier(String sourceId)
Create a new
KeyVaultSecretIdentifier from a given Key Vault identifier. |
| 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.
|
public KeyVaultSecretIdentifier(String sourceId)
KeyVaultSecretIdentifier from a given Key Vault identifier.
Some examples:
sourceId - The identifier to extract information from.IllegalArgumentException - If sourceId is an invalid Key Vault Secret identifier.NullPointerException - If sourceId is null.public String getSourceId()
public String getVaultUrl()
public String getName()
public String getVersion()
Copyright © 2021 Microsoft Corporation. All rights reserved.