pysasl.identity
Package¶
- class pysasl.identity.Identity(*args, **kwargs)[source]¶
Represents an server-side identity that credentials will be authenticated against.
- class pysasl.identity.ClearIdentity(authcid, secret, *, prepare=<function saslprep>)[source]¶
An
Identity
that stores the secret string in cleartext.- Parameters:
- class pysasl.identity.HashedIdentity(authcid, digest, *, hash, prepare=<function saslprep>)[source]¶
An
Identity
where the secret has been hashed for storage.- Parameters:
- classmethod create(authcid, secret, *, hash, prepare=<function saslprep>)[source]¶
Prepare and hash the given secret, returning a
HashedIdentity
.
- property hash: HashInterface¶
The hash implementation to use to verify the secret.