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.Object
LibvirtException
public int free() throws LibvirtException
LibvirtException
public java.lang.String getUsageID() throws LibvirtException
LibvirtException
public int[] getUUID() throws LibvirtException
LibvirtException
public java.lang.String getUUIDString() throws LibvirtException
LibvirtException
public java.lang.String getValue() throws LibvirtException
LibvirtException
public byte[] getByteValue() throws LibvirtException
LibvirtException
public java.lang.String getXMLDesc() throws LibvirtException
LibvirtException
protected void processError() throws LibvirtException
LibvirtException
public int setValue(java.lang.String value) throws LibvirtException
LibvirtException
public int setValue(byte[] value) throws LibvirtException
LibvirtException
public int undefine() throws LibvirtException
LibvirtException