public class Secret
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
protected void |
finalize() |
int |
free()
Release the secret handle.
|
byte[] |
getByteValue()
Fetches the value of the secret as a byte array
|
java.lang.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.
|
java.lang.String |
getUUIDString()
Gets the UUID for this secret as string.
|
java.lang.String |
getValue()
Fetches the value of the secret as a string (note that
this may not always work and getByteValue() is more reliable)
This is just kept for backward compatibility
|
java.lang.String |
getXMLDesc()
Fetches an XML document describing attributes of the secret.
|
protected void |
processError()
Error handling logic to throw errors.
|
int |
setValue(byte[] value)
Sets the value of the secret
|
int |
setValue(java.lang.String value)
Sets the value of the secret
|
int |
undefine()
Undefines, but does not free, the Secret.
|
protected void finalize()
throws LibvirtException
finalize in class java.lang.ObjectLibvirtExceptionpublic int free()
throws LibvirtException
LibvirtExceptionpublic java.lang.String getUsageID()
throws LibvirtException
LibvirtExceptionpublic int[] getUUID()
throws LibvirtException
LibvirtExceptionpublic java.lang.String getUUIDString()
throws LibvirtException
LibvirtExceptionpublic java.lang.String getValue()
throws LibvirtException
LibvirtExceptionpublic byte[] getByteValue()
throws LibvirtException
LibvirtExceptionpublic java.lang.String getXMLDesc()
throws LibvirtException
LibvirtExceptionprotected void processError()
throws LibvirtException
LibvirtExceptionpublic int setValue(java.lang.String value)
throws LibvirtException
LibvirtExceptionpublic int setValue(byte[] value)
throws LibvirtException
LibvirtExceptionpublic int undefine()
throws LibvirtException
LibvirtException