Package org.libvirt
Class ConnectAuth
- java.lang.Object
-
- org.libvirt.ConnectAuth
-
- All Implemented Interfaces:
com.sun.jna.Callback
,Libvirt.VirConnectAuthCallback
- Direct Known Subclasses:
ConnectAuthDefault
public abstract class ConnectAuth extends java.lang.Object implements Libvirt.VirConnectAuthCallback
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.- Author:
- stoty
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ConnectAuth.Credential
static class
ConnectAuth.CredentialType
-
Field Summary
Fields Modifier and Type Field Description ConnectAuth.CredentialType[]
credType
List of supported ConnectCredential.CredentialType values
-
Constructor Summary
Constructors Constructor Description ConnectAuth()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description int
authCallback(virConnectCredential cred, int ncred, com.sun.jna.Pointer cbdata)
abstract int
callback(ConnectAuth.Credential[] cred)
The callback function that fills the credentials in
-
-
-
Field Detail
-
credType
public ConnectAuth.CredentialType[] credType
List of supported ConnectCredential.CredentialType values
-
-
Method Detail
-
authCallback
public int authCallback(virConnectCredential cred, int ncred, com.sun.jna.Pointer cbdata)
- Specified by:
authCallback
in interfaceLibvirt.VirConnectAuthCallback
-
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
-
-