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 Auth = Auth (ForeignPtr Auth)
- class GObject o => AuthK o
- toAuth :: AuthK o => o -> IO Auth
- noAuth :: Maybe Auth
- authAuthenticate :: (MonadIO m, AuthK a) => a -> Text -> Text -> m ()
- authGetAuthorization :: (MonadIO m, AuthK a, MessageK b) => a -> b -> m Text
- authGetHost :: (MonadIO m, AuthK a) => a -> m Text
- authGetInfo :: (MonadIO m, AuthK a) => a -> m Text
- authGetProtectionSpace :: (MonadIO m, AuthK a) => a -> URI -> m [Text]
- authGetRealm :: (MonadIO m, AuthK a) => a -> m Text
- authGetSavedPassword :: (MonadIO m, AuthK a) => a -> Text -> m Text
- authGetSavedUsers :: (MonadIO m, AuthK a) => a -> m [Text]
- authGetSchemeName :: (MonadIO m, AuthK a) => a -> m Text
- authHasSavedPassword :: (MonadIO m, AuthK a) => a -> Text -> Text -> m ()
- authIsAuthenticated :: (MonadIO m, AuthK a) => a -> m Bool
- authIsForProxy :: (MonadIO m, AuthK a) => a -> m Bool
- authIsReady :: (MonadIO m, AuthK a, MessageK b) => a -> b -> m Bool
- authNew :: (MonadIO m, MessageK a) => GType -> a -> Text -> m Auth
- authSavePassword :: (MonadIO m, AuthK a) => a -> Text -> Text -> m ()
- authUpdate :: (MonadIO m, AuthK a, MessageK b) => a -> b -> Text -> m Bool
- data AuthHostPropertyInfo
- constructAuthHost :: Text -> IO ([Char], GValue)
- getAuthHost :: (MonadIO m, AuthK o) => o -> m Text
- setAuthHost :: (MonadIO m, AuthK o) => o -> Text -> m ()
- data AuthIsAuthenticatedPropertyInfo
- getAuthIsAuthenticated :: (MonadIO m, AuthK o) => o -> m Bool
- data AuthIsForProxyPropertyInfo
- constructAuthIsForProxy :: Bool -> IO ([Char], GValue)
- getAuthIsForProxy :: (MonadIO m, AuthK o) => o -> m Bool
- setAuthIsForProxy :: (MonadIO m, AuthK o) => o -> Bool -> m ()
- data AuthRealmPropertyInfo
- constructAuthRealm :: Text -> IO ([Char], GValue)
- getAuthRealm :: (MonadIO m, AuthK o) => o -> m Text
- setAuthRealm :: (MonadIO m, AuthK o) => o -> Text -> m ()
- data AuthSchemeNamePropertyInfo
- getAuthSchemeName :: (MonadIO m, AuthK o) => o -> m Text
Exported types
GObject Auth | |
type ParentTypes Auth | |
type AttributeList Auth | |
type SignalList Auth |
Methods
authAuthenticate
authGetAuthorization
authGetHost
authGetHost :: (MonadIO m, AuthK a) => a -> m Text Source
authGetInfo
authGetInfo :: (MonadIO m, AuthK a) => a -> m Text Source
authGetProtectionSpace
authGetRealm
authGetRealm :: (MonadIO m, AuthK a) => a -> m Text Source
authGetSavedPassword
authGetSavedUsers
authGetSavedUsers :: (MonadIO m, AuthK a) => a -> m [Text] Source
authGetSchemeName
authGetSchemeName :: (MonadIO m, AuthK a) => a -> m Text Source
authHasSavedPassword
authIsAuthenticated
authIsAuthenticated :: (MonadIO m, AuthK a) => a -> m Bool Source
authIsForProxy
authIsForProxy :: (MonadIO m, AuthK a) => a -> m Bool Source
authIsReady
authNew
authSavePassword
authUpdate
Properties
Host
data AuthHostPropertyInfo Source
AttrInfo AuthHostPropertyInfo | |
type AttrLabel AuthHostPropertyInfo = "Auth::host" | |
type AttrGetType AuthHostPropertyInfo = Text | |
type AttrBaseTypeConstraint AuthHostPropertyInfo = AuthK | |
type AttrSetTypeConstraint AuthHostPropertyInfo = * ~ Text | |
type AttrAllowedOps AuthHostPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) |
getAuthHost :: (MonadIO m, AuthK o) => o -> m Text Source
setAuthHost :: (MonadIO m, AuthK o) => o -> Text -> m () Source
IsAuthenticated
data AuthIsAuthenticatedPropertyInfo Source
AttrInfo AuthIsAuthenticatedPropertyInfo | |
type AttrLabel AuthIsAuthenticatedPropertyInfo = "Auth::is-authenticated" | |
type AttrGetType AuthIsAuthenticatedPropertyInfo = Bool | |
type AttrBaseTypeConstraint AuthIsAuthenticatedPropertyInfo = AuthK | |
type AttrSetTypeConstraint AuthIsAuthenticatedPropertyInfo = * ~ () | |
type AttrAllowedOps AuthIsAuthenticatedPropertyInfo = (:) AttrOpTag AttrGet ([] AttrOpTag) |
getAuthIsAuthenticated :: (MonadIO m, AuthK o) => o -> m Bool Source
IsForProxy
data AuthIsForProxyPropertyInfo Source
AttrInfo AuthIsForProxyPropertyInfo | |
type AttrLabel AuthIsForProxyPropertyInfo = "Auth::is-for-proxy" | |
type AttrGetType AuthIsForProxyPropertyInfo = Bool | |
type AttrBaseTypeConstraint AuthIsForProxyPropertyInfo = AuthK | |
type AttrSetTypeConstraint AuthIsForProxyPropertyInfo = * ~ Bool | |
type AttrAllowedOps AuthIsForProxyPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) |
getAuthIsForProxy :: (MonadIO m, AuthK o) => o -> m Bool Source
setAuthIsForProxy :: (MonadIO m, AuthK o) => o -> Bool -> m () Source
Realm
data AuthRealmPropertyInfo Source
AttrInfo AuthRealmPropertyInfo | |
type AttrLabel AuthRealmPropertyInfo = "Auth::realm" | |
type AttrGetType AuthRealmPropertyInfo = Text | |
type AttrBaseTypeConstraint AuthRealmPropertyInfo = AuthK | |
type AttrSetTypeConstraint AuthRealmPropertyInfo = * ~ Text | |
type AttrAllowedOps AuthRealmPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) |
getAuthRealm :: (MonadIO m, AuthK o) => o -> m Text Source
setAuthRealm :: (MonadIO m, AuthK o) => o -> Text -> m () Source
SchemeName
data AuthSchemeNamePropertyInfo Source
AttrInfo AuthSchemeNamePropertyInfo | |
type AttrLabel AuthSchemeNamePropertyInfo = "Auth::scheme-name" | |
type AttrGetType AuthSchemeNamePropertyInfo = Text | |
type AttrBaseTypeConstraint AuthSchemeNamePropertyInfo = AuthK | |
type AttrSetTypeConstraint AuthSchemeNamePropertyInfo = * ~ () | |
type AttrAllowedOps AuthSchemeNamePropertyInfo = (:) AttrOpTag AttrGet ([] AttrOpTag) |
getAuthSchemeName :: (MonadIO m, AuthK o) => o -> m Text Source