org.libvirt

Class ConnectAuth

public abstract class ConnectAuth extends 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
classConnectAuth.Credential
static classConnectAuth.CredentialType
Field Summary
ConnectAuth.CredentialType[]credType
List of supported ConnectCredential.CredentialType values
Method Summary
intauthCallback(virConnectCredential cred, int ncred, Pointer cbdata)
abstract intcallback(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, Pointer cbdata)

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