public final class KeyVaultKeyIdentifier extends Object
KeyVaultKey parsed from the key URL. You can use this information when calling methods
of KeyClient or KeyAsyncClient.| Constructor and Description |
|---|
KeyVaultKeyIdentifier(String sourceId)
Create a new
KeyVaultKeyIdentifier from a given Key Vault identifier. |
| 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.
|
public KeyVaultKeyIdentifier(String sourceId)
KeyVaultKeyIdentifier from a given Key Vault identifier.
Some examples:
sourceId - The identifier to extract information from.IllegalArgumentException - If sourceId is an invalid Key Vault identifier.NullPointerException - If sourceId is null.public String getSourceId()
public String getVaultUrl()
public String getName()
public String getVersion()
Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.