Package org.gnome.webkit
Interface WebView.AuthenticateCallback
- All Superinterfaces:
FunctionPointer
- Enclosing class:
WebView
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface declaration of the
AuthenticateCallback
callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
run
(AuthenticationRequest request) This signal is emitted when the user is challenged with HTTP authentication.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 sourceWebView, MemorySegment request) Theupcall
method is called from native code.
-
Method Details
-
run
This signal is emitted when the user is challenged with HTTP authentication. To let the application access or supply the credentials as well as to allow the client application to either cancel the request or perform the authentication, the signal will pass an instance of theWebKitAuthenticationRequest
in therequest
argument. To handle this signal asynchronously you should keep a ref of the request and returntrue
. To disable HTTP authentication entirely, connect to this signal and simply returntrue
.The default signal handler will run a default authentication dialog asynchronously for the user to interact with.
-
upcall
Theupcall
method is called from native code. The parameters are marshaled andrun(org.gnome.webkit.AuthenticationRequest)
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
-