Package org.libvirt
Class ConnectAuthDefault
- java.lang.Object
-
- org.libvirt.ConnectAuth
-
- 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
-
-
Field Summary
-
Fields inherited from class org.libvirt.ConnectAuth
credType
-
-
Constructor Summary
Constructors Constructor Description ConnectAuthDefault()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
callback(ConnectAuth.Credential[] cred)
The callback function that fills the credentials in-
Methods inherited from class org.libvirt.ConnectAuth
authCallback
-
-
-
-
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 classConnectAuth
- Parameters:
cred
- the array of credentials passed by libvirt- Returns:
- 0 if the defresult field contains a vailde response, -1 otherwise
-
-