Package org.libvirt
Class ConnectAuthDefault
java.lang.Object
org.libvirt.ConnectAuth
org.libvirt.ConnectAuthDefault
- All Implemented Interfaces:
com.sun.jna.Callback
,Libvirt.VirConnectAuthCallback
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
-
Method Summary
Modifier and TypeMethodDescriptionint
callback
(ConnectAuth.Credential[] cred) The callback function that fills the credentials inMethods inherited from class org.libvirt.ConnectAuth
authCallback
-
Constructor Details
-
ConnectAuthDefault
public ConnectAuthDefault()
-
-
Method Details
-
callback
Description copied from class:ConnectAuth
The callback function that fills the credentials in- Specified by:
callback
in classConnectAuth
- Parameters:
cred
- the array of credentials passed by libvirt- Returns:
- 0 if the defresult field contains a vailde response, -1 otherwise
-