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 secretId)
Create a new
KeyVaultSecretIdentifier from a given secret identifier. |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Gets the name of the secret.
|
String |
getSecretId()
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 secretId)
KeyVaultSecretIdentifier
from a given secret identifier.
Valid examples are:
secretId
- The secret identifier to extract information from.IllegalArgumentException
- If secretId
is an invalid Key Vault Secret identifier.NullPointerException
- If secretId
is null
.public String getSecretId()
public String getVaultUrl()
public String getName()
public String getVersion()
Copyright © 2021 Microsoft Corporation. All rights reserved.