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 |
No description available in the introspection data.
- newtype AuthDomainDigest = AuthDomainDigest (ManagedPtr AuthDomainDigest)
- class GObject o => IsAuthDomainDigest o
- toAuthDomainDigest :: (MonadIO m, IsAuthDomainDigest o) => o -> m AuthDomainDigest
- noAuthDomainDigest :: Maybe AuthDomainDigest
- authDomainDigestEncodePassword :: (HasCallStack, MonadIO m) => Text -> Text -> Text -> m Text
- constructAuthDomainDigestAuthCallback :: IsAuthDomainDigest o => Ptr () -> IO (GValueConstruct o)
- getAuthDomainDigestAuthCallback :: (MonadIO m, IsAuthDomainDigest o) => o -> m (Ptr ())
- setAuthDomainDigestAuthCallback :: (MonadIO m, IsAuthDomainDigest o) => o -> Ptr () -> m ()
- 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 #
Memory-managed wrapper type.
class GObject o => IsAuthDomainDigest o Source #
Type class for types which can be safely cast to AuthDomainDigest
, for instance with toAuthDomainDigest
.
toAuthDomainDigest :: (MonadIO m, IsAuthDomainDigest o) => o -> m AuthDomainDigest Source #
Cast to AuthDomainDigest
, for types for which this is known to be safe. For general casts, use castTo
.
noAuthDomainDigest :: Maybe AuthDomainDigest Source #
A convenience alias for Nothing
:: Maybe
AuthDomainDigest
.
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
No description available in the introspection data.
constructAuthDomainDigestAuthCallback :: IsAuthDomainDigest o => Ptr () -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “auth-callback
” property. This is rarely needed directly, but it is used by new
.
getAuthDomainDigestAuthCallback :: (MonadIO m, IsAuthDomainDigest o) => o -> m (Ptr ()) Source #
Get the value of the “auth-callback
” property.
When overloading is enabled, this is equivalent to
get
authDomainDigest #authCallback
setAuthDomainDigestAuthCallback :: (MonadIO m, IsAuthDomainDigest o) => o -> Ptr () -> m () Source #
Set the value of the “auth-callback
” property.
When overloading is enabled, this is equivalent to
set
authDomainDigest [ #authCallback:=
value ]
authData
No description available in the introspection data.
constructAuthDomainDigestAuthData :: IsAuthDomainDigest o => Ptr () -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “auth-data
” property. This is rarely needed directly, but it is used by new
.
getAuthDomainDigestAuthData :: (MonadIO m, IsAuthDomainDigest o) => o -> m (Ptr ()) Source #
Get the value of the “auth-data
” property.
When overloading is enabled, this is equivalent to
get
authDomainDigest #authData
setAuthDomainDigestAuthData :: (MonadIO m, IsAuthDomainDigest o) => o -> Ptr () -> m () Source #
Set the value of the “auth-data
” property.
When overloading is enabled, this is equivalent to
set
authDomainDigest [ #authData:=
value ]