org.libvirt
Class ConnectAuthDefault

java.lang.Object
  extended by org.libvirt.ConnectAuth
      extended by org.libvirt.ConnectAuthDefault
All Implemented Interfaces:
com.sun.jna.Callback, Libvirt.VirConnectAuthCallback

public final class ConnectAuthDefault
extends ConnectAuth

Implements virConnectAuthPtrDefault functionality from libvirt.c without the external method support It's not officially a part of the libvirt API, but provided here for completeness, testing, and as an example

Author:
stoty

Nested Class Summary
 
Nested classes/interfaces inherited from class org.libvirt.ConnectAuth
ConnectAuth.Credential, ConnectAuth.CredentialType
 
Nested classes/interfaces inherited from interface com.sun.jna.Callback
com.sun.jna.Callback.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class org.libvirt.ConnectAuth
credType
 
Fields inherited from interface com.sun.jna.Callback
FORBIDDEN_NAMES, METHOD_NAME
 
Constructor Summary
ConnectAuthDefault()
           
 
Method Summary
 int callback(ConnectAuth.Credential[] cred)
          The callback function that fills the credentials in
 
Methods inherited from class org.libvirt.ConnectAuth
authCallback
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectAuthDefault

public ConnectAuthDefault()
Method Detail

callback

public int callback(ConnectAuth.Credential[] cred)
Description copied from class: ConnectAuth
The callback function that fills the credentials in

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