gi-webkit2-4.0.26: WebKit2 bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.WebKit2.Objects.AuthenticationRequest

Description

No description available in the introspection data.

Synopsis

Exported types

newtype AuthenticationRequest Source #

Memory-managed wrapper type.

Constructors

AuthenticationRequest (ManagedPtr AuthenticationRequest) 

Instances

Instances details
Eq AuthenticationRequest Source # 
Instance details

Defined in GI.WebKit2.Objects.AuthenticationRequest

GObject AuthenticationRequest Source # 
Instance details

Defined in GI.WebKit2.Objects.AuthenticationRequest

ManagedPtrNewtype AuthenticationRequest Source # 
Instance details

Defined in GI.WebKit2.Objects.AuthenticationRequest

TypedObject AuthenticationRequest Source # 
Instance details

Defined in GI.WebKit2.Objects.AuthenticationRequest

Methods

glibType :: IO GType

IsGValue AuthenticationRequest Source #

Convert AuthenticationRequest to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.WebKit2.Objects.AuthenticationRequest

Methods

toGValue :: AuthenticationRequest -> IO GValue

fromGValue :: GValue -> IO AuthenticationRequest

HasParentTypes AuthenticationRequest Source # 
Instance details

Defined in GI.WebKit2.Objects.AuthenticationRequest

type ParentTypes AuthenticationRequest Source # 
Instance details

Defined in GI.WebKit2.Objects.AuthenticationRequest

type ParentTypes AuthenticationRequest = '[Object]

class (GObject o, IsDescendantOf AuthenticationRequest o) => IsAuthenticationRequest o Source #

Type class for types which can be safely cast to AuthenticationRequest, for instance with toAuthenticationRequest.

Instances

Instances details
(GObject o, IsDescendantOf AuthenticationRequest o) => IsAuthenticationRequest o Source # 
Instance details

Defined in GI.WebKit2.Objects.AuthenticationRequest

toAuthenticationRequest :: (MonadIO m, IsAuthenticationRequest o) => o -> m AuthenticationRequest Source #

Cast to AuthenticationRequest, for types for which this is known to be safe. For general casts, use castTo.

Methods

Overloaded methods

authenticate

authenticationRequestAuthenticate Source #

Arguments

:: (HasCallStack, MonadIO m, IsAuthenticationRequest a) 
=> a

request: a AuthenticationRequest

-> Maybe Credential

credential: A Credential, or Nothing

-> m () 

Authenticate the AuthenticationRequest using the Credential supplied. To continue without credentials, pass Nothing as credential.

Since: 2.2

canSaveCredentials

authenticationRequestCanSaveCredentials Source #

Arguments

:: (HasCallStack, MonadIO m, IsAuthenticationRequest a) 
=> a

request: a AuthenticationRequest

-> m Bool

Returns: True if WebKit can store credentials or False otherwise.

Determine whether the authentication method associated with this AuthenticationRequest should allow the storage of credentials. This will return False if WebKit doesn't support credential storing or if private browsing is enabled.

Since: 2.2

cancel

authenticationRequestCancel Source #

Arguments

:: (HasCallStack, MonadIO m, IsAuthenticationRequest a) 
=> a

request: a AuthenticationRequest

-> m () 

Cancel the authentication challenge. This will also cancel the page loading and result in a loadFailed signal with a NetworkError of type NetworkErrorCancelled being emitted.

Since: 2.2

getHost

authenticationRequestGetHost Source #

Arguments

:: (HasCallStack, MonadIO m, IsAuthenticationRequest a) 
=> a

request: a AuthenticationRequest

-> m Text

Returns: The host of request.

Get the host that this authentication challenge is applicable to.

Since: 2.2

getPort

authenticationRequestGetPort Source #

Arguments

:: (HasCallStack, MonadIO m, IsAuthenticationRequest a) 
=> a

request: a AuthenticationRequest

-> m Word32

Returns: The port of request.

Get the port that this authentication challenge is applicable to.

Since: 2.2

getProposedCredential

authenticationRequestGetProposedCredential Source #

Arguments

:: (HasCallStack, MonadIO m, IsAuthenticationRequest a) 
=> a

request: a AuthenticationRequest

-> m Credential

Returns: A Credential encapsulating credential details or Nothing if there is no stored credential.

Get the Credential of the proposed authentication challenge that was stored from a previous session. The client can use this directly for authentication or construct their own Credential.

Since: 2.2

getRealm

authenticationRequestGetRealm Source #

Arguments

:: (HasCallStack, MonadIO m, IsAuthenticationRequest a) 
=> a

request: a AuthenticationRequest

-> m Text

Returns: The realm of request.

Get the realm that this authentication challenge is applicable to.

Since: 2.2

getScheme

authenticationRequestGetScheme Source #

Arguments

:: (HasCallStack, MonadIO m, IsAuthenticationRequest a) 
=> a

request: a AuthenticationRequest

-> m AuthenticationScheme

Returns: The AuthenticationScheme of request.

Get the authentication scheme of the authentication challenge.

Since: 2.2

isForProxy

authenticationRequestIsForProxy Source #

Arguments

:: (HasCallStack, MonadIO m, IsAuthenticationRequest a) 
=> a

request: a AuthenticationRequest

-> m Bool

Returns: True if authentication is for a proxy or False otherwise.

Determine whether the authentication challenge is associated with a proxy server rather than an "origin" server.

Since: 2.2

isRetry

authenticationRequestIsRetry Source #

Arguments

:: (HasCallStack, MonadIO m, IsAuthenticationRequest a) 
=> a

request: a AuthenticationRequest

-> m Bool

Returns: True if authentication attempt is a retry or False otherwise.

Determine whether this this is a first attempt or a retry for this authentication challenge.

Since: 2.2

Signals

cancelled

type AuthenticationRequestCancelledCallback = IO () Source #

This signal is emitted when the user authentication request is cancelled. It allows the application to dismiss its authentication dialog in case of page load failure for example.

Since: 2.2

type C_AuthenticationRequestCancelledCallback = Ptr () -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

afterAuthenticationRequestCancelled :: (IsAuthenticationRequest a, MonadIO m) => a -> AuthenticationRequestCancelledCallback -> m SignalHandlerId Source #

Connect a signal handler for the cancelled signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after authenticationRequest #cancelled callback

onAuthenticationRequestCancelled :: (IsAuthenticationRequest a, MonadIO m) => a -> AuthenticationRequestCancelledCallback -> m SignalHandlerId Source #

Connect a signal handler for the cancelled signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on authenticationRequest #cancelled callback