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 AuthDomainDigest = AuthDomainDigest (ManagedPtr AuthDomainDigest)
- class GObject o => IsAuthDomainDigest o
- toAuthDomainDigest :: IsAuthDomainDigest o => o -> IO AuthDomainDigest
- noAuthDomainDigest :: Maybe AuthDomainDigest
- authDomainDigestEncodePassword :: (HasCallStack, MonadIO m) => Text -> Text -> Text -> m Text
- data AuthDomainDigestAuthCallbackPropertyInfo
- authDomainDigestAuthCallback :: AttrLabelProxy "authCallback"
- constructAuthDomainDigestAuthCallback :: IsAuthDomainDigest o => Ptr () -> IO (GValueConstruct o)
- getAuthDomainDigestAuthCallback :: (MonadIO m, IsAuthDomainDigest o) => o -> m (Ptr ())
- setAuthDomainDigestAuthCallback :: (MonadIO m, IsAuthDomainDigest o) => o -> Ptr () -> m ()
- data AuthDomainDigestAuthDataPropertyInfo
- authDomainDigestAuthData :: AttrLabelProxy "authData"
- constructAuthDomainDigestAuthData :: IsAuthDomainDigest o => Ptr () -> IO (GValueConstruct o)
- getAuthDomainDigestAuthData :: (MonadIO m, IsAuthDomainDigest o) => o -> m (Ptr ())
- setAuthDomainDigestAuthData :: (MonadIO m, IsAuthDomainDigest o) => o -> Ptr () -> m ()
Exported types
newtype AuthDomainDigest Source #
GObject AuthDomainDigest Source # | |
IsObject AuthDomainDigest Source # | |
IsAuthDomain AuthDomainDigest Source # | |
IsAuthDomainDigest AuthDomainDigest Source # | |
((~) * info (ResolveAuthDomainDigestMethod t AuthDomainDigest), MethodInfo * info AuthDomainDigest p) => IsLabel t (AuthDomainDigest -> p) Source # | |
((~) * info (ResolveAuthDomainDigestMethod t AuthDomainDigest), MethodInfo * info AuthDomainDigest p) => IsLabelProxy t (AuthDomainDigest -> p) Source # | |
HasAttributeList * AuthDomainDigest Source # | |
type AttributeList AuthDomainDigest Source # | |
type SignalList AuthDomainDigest Source # | |
class GObject o => IsAuthDomainDigest o Source #
toAuthDomainDigest :: IsAuthDomainDigest o => o -> IO AuthDomainDigest Source #
Methods
encodePassword
authDomainDigestEncodePassword Source #
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> Text |
|
-> Text |
|
-> m Text | Returns: the encoded password |
Encodes the username/realm/password triplet for Digest
authentication. (That is, it returns a stringified MD5 hash of
username
, realm
, and password
concatenated together). This is
the form that is needed as the return value of
'GI.Soup.Objects.AuthDomainDigest.AuthDomainDigest'\'s auth handler.
For security reasons, you should store the encoded hash, rather than storing the cleartext password itself and calling this method only when you need to verify it. This way, if your server is compromised, the attackers will not gain access to cleartext passwords which might also be usable at other sites. (Note also that the encoded password returned by this method is identical to the encoded password stored in an Apache .htdigest file.)
Properties
authCallback
data AuthDomainDigestAuthCallbackPropertyInfo Source #
authDomainDigestAuthCallback :: AttrLabelProxy "authCallback" Source #
constructAuthDomainDigestAuthCallback :: IsAuthDomainDigest o => Ptr () -> IO (GValueConstruct o) Source #
getAuthDomainDigestAuthCallback :: (MonadIO m, IsAuthDomainDigest o) => o -> m (Ptr ()) Source #
setAuthDomainDigestAuthCallback :: (MonadIO m, IsAuthDomainDigest o) => o -> Ptr () -> m () Source #
authData
data AuthDomainDigestAuthDataPropertyInfo Source #
authDomainDigestAuthData :: AttrLabelProxy "authData" Source #
constructAuthDomainDigestAuthData :: IsAuthDomainDigest o => Ptr () -> IO (GValueConstruct o) Source #
getAuthDomainDigestAuthData :: (MonadIO m, IsAuthDomainDigest o) => o -> m (Ptr ()) Source #
setAuthDomainDigestAuthData :: (MonadIO m, IsAuthDomainDigest o) => o -> Ptr () -> m () Source #