org.libvirt
Class ConnectAuth

java.lang.Object
  extended by org.libvirt.ConnectAuth
Direct Known Subclasses:
ConnectAuthDefault

public abstract class ConnectAuth
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.


Nested Class Summary
 class ConnectAuth.Credential
           
static class ConnectAuth.CredentialType
           
 
Field Summary
 ConnectAuth.CredentialType[] credType
          List of supported ConnectCredential.CredentialType values
 
Constructor Summary
ConnectAuth()
           
 
Method Summary
abstract  int callback(ConnectAuth.Credential[] 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 ConnectAuth.CredentialType[] credType
List of supported ConnectCredential.CredentialType values

Constructor Detail

ConnectAuth

public ConnectAuth()
Method Detail

callback

public abstract int callback(ConnectAuth.Credential[] 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