|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.libvirt.Secret
public class Secret
A secret defined by libvirt
| Field Summary | |
|---|---|
protected Libvirt |
libvirt
The libvirt connection from the hypervisor |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Libvirt libvirt
| Method Detail |
|---|
public void finalize()
throws LibvirtException
finalize in class java.lang.ObjectLibvirtException
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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||