[−][src]Trait oxide_auth::primitives::registrar::PasswordPolicy
Determines how passphrases are stored and checked.
The provided library implementation is based on Pbkdf2
. Other users may prefer to write their
own adaption with Argon2
. If you do so, you could send a pull request my way.
Required methods
fn store(&self, client_id: &str, passphrase: &[u8]) -> Vec<u8>
Transform the passphrase so it can be stored in the confidential client.
fn check(
&self,
client_id: &str,
passphrase: &[u8],
stored: &[u8]
) -> Result<(), Unspecified>
&self,
client_id: &str,
passphrase: &[u8],
stored: &[u8]
) -> Result<(), Unspecified>
Check if the stored data corresponds to that of the client id and passphrase.