org.libvirt
public class Secret extends Object
Field Summary | |
---|---|
protected Libvirt | libvirt
The libvirt connection from the hypervisor |
Method Summary | |
---|---|
int | free()
Release the secret handle. |
String | getUsageID()
Get the unique identifier of the object with which this secret is to be
used.
|
int[] | getUUID()
Get the UUID for this secret.
|
String | getUUIDString()
Gets the UUID for this secret as string.
|
String | getValue()
Fetches the value of the secret
|
String | getXMLDesc()
Fetches an XML document describing attributes of the secret.
|
protected void | processError()
Error handling logic to throw errors. |
int | setValue(String value)
Sets the value of the secret
|
int | undefine()
Undefines, but does not free, the Secret.
|
Returns: 0 on success, or -1 on error.
Throws: LibvirtException
Returns: a string identifying the object using the secret, or NULL upon error
Throws: LibvirtException
Returns: the UUID as an unpacked int array
Throws: LibvirtException
See Also: rfc4122
Returns: the UUID in canonical String format
Throws: LibvirtException
See Also: rfc4122
Returns: the value of the secret, or null on failure.
Returns: the XML document
Returns: 0 on success, -1 on failure.
Returns: 0 on success, -1 on failure.