org.libvirt
Class VirConnectAuth

java.lang.Object
  extended by org.libvirt.VirConnectAuth
Direct Known Subclasses:
VirConnectAuthDefault

public abstract class VirConnectAuth
extends java.lang.Object

We diverge from the C implementation There is no explicit cbdata field, you should just add any extra data to the child class's instance.


Field Summary
 VirConnectCredential.VirConnectCredentialType[] credType
          List of supported VirConnectCredential.VirConnectCredentialType values
 
Constructor Summary
VirConnectAuth()
           
 
Method Summary
abstract  int callback(VirConnectCredential[] cred)
          The callback function that fills the credentials in
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

credType

public VirConnectCredential.VirConnectCredentialType[] credType
List of supported VirConnectCredential.VirConnectCredentialType values

Constructor Detail

VirConnectAuth

public VirConnectAuth()
Method Detail

callback

public abstract int callback(VirConnectCredential[] cred)
The callback function that fills the credentials in

Parameters:
cred - the array of credentials passed by libvirt
Returns:
0 if the defresult field contains a vailde response, -1 otherwise