public class ObjectIdentifier extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
baseIdentifier |
protected String |
identifier |
protected String |
name |
protected String |
vault |
protected String |
version |
| Modifier | Constructor and Description |
|---|---|
protected |
ObjectIdentifier()
Constructor.
|
protected |
ObjectIdentifier(String collection,
String identifier)
Constructor.
|
protected |
ObjectIdentifier(String vault,
String collection,
String name)
Constructor.
|
protected |
ObjectIdentifier(String vault,
String collection,
String name,
String version)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
baseIdentifier() |
protected String |
getFullAuthority(URI uri)
Gets full authority for a URL by appending port to the url authority.
|
String |
identifier() |
protected static boolean |
isObjectIdentifier(String collection,
String identifier)
Verifies whether the identifier belongs to a key vault object.
|
String |
name() |
String |
toString() |
String |
vault() |
protected static String |
verifyNonEmpty(String value,
String argName)
Verifies a value is null or empty.
|
String |
version() |
protected String vault
protected String name
protected String version
protected String baseIdentifier
protected String identifier
protected ObjectIdentifier()
protected ObjectIdentifier(String vault, String collection, String name)
vault - the vault url.collection - the object collection name. e.g. 'keys', 'secrets' and 'certificates'.name - the object name.protected ObjectIdentifier(String vault, String collection, String name, String version)
vault - the vault url.collection - the object collection name. e.g. 'keys', 'secrets' and 'certificates'.name - the object name.version - the object version.protected static boolean isObjectIdentifier(String collection, String identifier)
collection - the object collection e.g. 'keys', 'secrets' and 'certificates'.identifier - the key vault object identifier.protected static String verifyNonEmpty(String value, String argName)
value - the value to verify.argName - the name of the value.protected String getFullAuthority(URI uri)
uri - the URL to get the full authority for.public String baseIdentifier()
public String identifier()
public String name()
public String vault()
public String version()
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/