Package org.gnome.soup
Interface Message.RequestCertificateCallback
- 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.RequestCertificateCallback
extends FunctionPointer
Functional interface declaration of the
RequestCertificateCallback
callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
run
(TlsClientConnection tlsConnection) Emitted during themsg
's connection TLS handshake whentlsConnection
requests a certificate 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 tlsConnection) Theupcall
method is called from native code.
-
Method Details
-
run
Emitted during themsg
's connection TLS handshake whentlsConnection
requests a certificate from the client.You can set the client certificate by calling
Message.setTlsClientCertificate(org.gnome.gio.TlsCertificate)
and returningtrue
. It's possible to handle the request asynchornously by returningtrue
and callMessage.setTlsClientCertificate(org.gnome.gio.TlsCertificate)
later once the certificate is available. Note that this signal is not emitted ifSession:tls-interaction
was set, or ifMessage.setTlsClientCertificate(org.gnome.gio.TlsCertificate)
was called before the connection TLS handshake started. -
upcall
Theupcall
method is called from native code. The parameters are marshaled andrun(org.gnome.gio.TlsClientConnection)
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
-