Package org.gnome.soup
Interface Message.RequestCertificatePasswordCallback
- All Superinterfaces:
FunctionPointer
- Enclosing class:
Message
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public static interface Message.RequestCertificatePasswordCallback
extends FunctionPointer
Functional interface declaration of the
RequestCertificatePasswordCallback
callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
run
(TlsPassword tlsPassword) Emitted during themsg
's connection TLS handshake whentlsConnection
requests a certificate password from the client.default MemorySegment
toCallback
(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)
method.default int
upcall
(MemorySegment sourceMessage, MemorySegment tlsPassword) Theupcall
method is called from native code.
-
Method Details
-
run
Emitted during themsg
's connection TLS handshake whentlsConnection
requests a certificate password from the client.You can set the certificate password on
password
, then callMessage.tlsClientCertificatePasswordRequestComplete()
and returntrue
to handle the signal synchronously. It's possible to handle the request asynchornously by callingGObject.ref()
onpassword
, then returningtrue
and callMessage.tlsClientCertificatePasswordRequestComplete()
later after setting the password onpassword
. Note that this signal is not emitted ifSession:tls-interaction
was set. -
upcall
Theupcall
method is called from native code. The parameters are marshaled andrun(org.gnome.gio.TlsPassword)
is executed. -
toCallback
Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)
method.- Specified by:
toCallback
in interfaceFunctionPointer
- Parameters:
arena
- the function pointer will be allocated in this arena- Returns:
- the native function pointer
-