Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
- newtype AuthenticationRequest = AuthenticationRequest (ManagedPtr AuthenticationRequest)
- class GObject o => IsAuthenticationRequest o
- toAuthenticationRequest :: IsAuthenticationRequest o => o -> IO AuthenticationRequest
- noAuthenticationRequest :: Maybe AuthenticationRequest
- data AuthenticationRequestAuthenticateMethodInfo
- authenticationRequestAuthenticate :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> Maybe Credential -> m ()
- data AuthenticationRequestCanSaveCredentialsMethodInfo
- authenticationRequestCanSaveCredentials :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> m Bool
- data AuthenticationRequestCancelMethodInfo
- authenticationRequestCancel :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> m ()
- data AuthenticationRequestGetHostMethodInfo
- authenticationRequestGetHost :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> m Text
- data AuthenticationRequestGetPortMethodInfo
- authenticationRequestGetPort :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> m Word32
- data AuthenticationRequestGetProposedCredentialMethodInfo
- authenticationRequestGetProposedCredential :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> m Credential
- data AuthenticationRequestGetRealmMethodInfo
- authenticationRequestGetRealm :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> m Text
- data AuthenticationRequestGetSchemeMethodInfo
- authenticationRequestGetScheme :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> m AuthenticationScheme
- data AuthenticationRequestIsForProxyMethodInfo
- authenticationRequestIsForProxy :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> m Bool
- data AuthenticationRequestIsRetryMethodInfo
- authenticationRequestIsRetry :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> m Bool
- type AuthenticationRequestCancelledCallback = IO ()
- data AuthenticationRequestCancelledSignalInfo
- type C_AuthenticationRequestCancelledCallback = Ptr () -> Ptr () -> IO ()
- afterAuthenticationRequestCancelled :: (GObject a, MonadIO m) => a -> AuthenticationRequestCancelledCallback -> m SignalHandlerId
- genClosure_AuthenticationRequestCancelled :: AuthenticationRequestCancelledCallback -> IO Closure
- mk_AuthenticationRequestCancelledCallback :: C_AuthenticationRequestCancelledCallback -> IO (FunPtr C_AuthenticationRequestCancelledCallback)
- noAuthenticationRequestCancelledCallback :: Maybe AuthenticationRequestCancelledCallback
- onAuthenticationRequestCancelled :: (GObject a, MonadIO m) => a -> AuthenticationRequestCancelledCallback -> m SignalHandlerId
- wrap_AuthenticationRequestCancelledCallback :: AuthenticationRequestCancelledCallback -> Ptr () -> Ptr () -> IO ()
Exported types
newtype AuthenticationRequest Source #
GObject AuthenticationRequest Source # | |
IsObject AuthenticationRequest Source # | |
IsAuthenticationRequest AuthenticationRequest Source # | |
((~) * info (ResolveAuthenticationRequestMethod t AuthenticationRequest), MethodInfo * info AuthenticationRequest p) => IsLabel t (AuthenticationRequest -> p) Source # | |
((~) * info (ResolveAuthenticationRequestMethod t AuthenticationRequest), MethodInfo * info AuthenticationRequest p) => IsLabelProxy t (AuthenticationRequest -> p) Source # | |
HasAttributeList * AuthenticationRequest Source # | |
type AttributeList AuthenticationRequest Source # | |
type SignalList AuthenticationRequest Source # | |
class GObject o => IsAuthenticationRequest o Source #
Methods
authenticate
data AuthenticationRequestAuthenticateMethodInfo Source #
((~) * signature (Maybe Credential -> m ()), MonadIO m, IsAuthenticationRequest a) => MethodInfo * AuthenticationRequestAuthenticateMethodInfo a signature Source # | |
authenticationRequestAuthenticate Source #
:: (HasCallStack, MonadIO m, IsAuthenticationRequest a) | |
=> a |
|
-> Maybe Credential |
|
-> m () |
Authenticate the AuthenticationRequest
using the Credential
supplied. To continue without credentials, pass Nothing
as credential
.
Since: 2.2
canSaveCredentials
data AuthenticationRequestCanSaveCredentialsMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsAuthenticationRequest a) => MethodInfo * AuthenticationRequestCanSaveCredentialsMethodInfo a signature Source # | |
authenticationRequestCanSaveCredentials Source #
:: (HasCallStack, MonadIO m, IsAuthenticationRequest a) | |
=> a |
|
-> m Bool | Returns: |
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
data AuthenticationRequestCancelMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsAuthenticationRequest a) => MethodInfo * AuthenticationRequestCancelMethodInfo a signature Source # | |
authenticationRequestCancel Source #
:: (HasCallStack, MonadIO m, IsAuthenticationRequest a) | |
=> a |
|
-> m () |
Cancel the authentication challenge. This will also cancel the page loading and result in a
WebView
::load-failed
signal with a NetworkError
of type NetworkErrorCancelled
being emitted.
Since: 2.2
getHost
data AuthenticationRequestGetHostMethodInfo Source #
((~) * signature (m Text), MonadIO m, IsAuthenticationRequest a) => MethodInfo * AuthenticationRequestGetHostMethodInfo a signature Source # | |
authenticationRequestGetHost Source #
:: (HasCallStack, MonadIO m, IsAuthenticationRequest a) | |
=> a |
|
-> m Text | Returns: The host of |
Get the host that this authentication challenge is applicable to.
Since: 2.2
getPort
data AuthenticationRequestGetPortMethodInfo Source #
((~) * signature (m Word32), MonadIO m, IsAuthenticationRequest a) => MethodInfo * AuthenticationRequestGetPortMethodInfo a signature Source # | |
authenticationRequestGetPort Source #
:: (HasCallStack, MonadIO m, IsAuthenticationRequest a) | |
=> a |
|
-> m Word32 | Returns: The port of |
Get the port that this authentication challenge is applicable to.
Since: 2.2
getProposedCredential
data AuthenticationRequestGetProposedCredentialMethodInfo Source #
((~) * signature (m Credential), MonadIO m, IsAuthenticationRequest a) => MethodInfo * AuthenticationRequestGetProposedCredentialMethodInfo a signature Source # | |
authenticationRequestGetProposedCredential Source #
:: (HasCallStack, MonadIO m, IsAuthenticationRequest a) | |
=> a |
|
-> m Credential | Returns: A |
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
data AuthenticationRequestGetRealmMethodInfo Source #
((~) * signature (m Text), MonadIO m, IsAuthenticationRequest a) => MethodInfo * AuthenticationRequestGetRealmMethodInfo a signature Source # | |
authenticationRequestGetRealm Source #
:: (HasCallStack, MonadIO m, IsAuthenticationRequest a) | |
=> a |
|
-> m Text | Returns: The realm of |
Get the realm that this authentication challenge is applicable to.
Since: 2.2
getScheme
data AuthenticationRequestGetSchemeMethodInfo Source #
((~) * signature (m AuthenticationScheme), MonadIO m, IsAuthenticationRequest a) => MethodInfo * AuthenticationRequestGetSchemeMethodInfo a signature Source # | |
authenticationRequestGetScheme Source #
:: (HasCallStack, MonadIO m, IsAuthenticationRequest a) | |
=> a |
|
-> m AuthenticationScheme | Returns: The |
Get the authentication scheme of the authentication challenge.
Since: 2.2
isForProxy
data AuthenticationRequestIsForProxyMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsAuthenticationRequest a) => MethodInfo * AuthenticationRequestIsForProxyMethodInfo a signature Source # | |
authenticationRequestIsForProxy Source #
:: (HasCallStack, MonadIO m, IsAuthenticationRequest a) | |
=> a |
|
-> m Bool | Returns: |
Determine whether the authentication challenge is associated with a proxy server rather than an "origin" server.
Since: 2.2
isRetry
data AuthenticationRequestIsRetryMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsAuthenticationRequest a) => MethodInfo * AuthenticationRequestIsRetryMethodInfo a signature Source # | |
authenticationRequestIsRetry Source #
:: (HasCallStack, MonadIO m, IsAuthenticationRequest a) | |
=> a |
|
-> m Bool | Returns: |
Determine whether this this is a first attempt or a retry for this authentication challenge.
Since: 2.2
Signals
cancelled
type AuthenticationRequestCancelledCallback = IO () Source #
afterAuthenticationRequestCancelled :: (GObject a, MonadIO m) => a -> AuthenticationRequestCancelledCallback -> m SignalHandlerId Source #
genClosure_AuthenticationRequestCancelled :: AuthenticationRequestCancelledCallback -> IO Closure Source #
mk_AuthenticationRequestCancelledCallback :: C_AuthenticationRequestCancelledCallback -> IO (FunPtr C_AuthenticationRequestCancelledCallback) Source #
onAuthenticationRequestCancelled :: (GObject a, MonadIO m) => a -> AuthenticationRequestCancelledCallback -> m SignalHandlerId Source #
wrap_AuthenticationRequestCancelledCallback :: AuthenticationRequestCancelledCallback -> Ptr () -> Ptr () -> IO () Source #