org.xwiki.contrib.authentication.jdbc
Interface PasswordHasher


@Role
public interface PasswordHasher

Interface for all password hashing objects (e.g. salted SHA1, PBKDF2, etc.).

Author:
Petr Praus

Method Summary
 String create(String password)
           
 boolean verify(String dbPassword, String suppliedPassword)
           
 

Method Detail

verify

boolean verify(String dbPassword,
               String suppliedPassword)
Parameters:
suppliedPassword - Password harvested from the user (plaintext)
dbPassword - User's hashed password+params from the database, possible
Returns:
true if hash of suppliedPassword matches the password from the database

create

String create(String password)
Parameters:
password - to be hashed
Returns:
hashed password


Copyright © 2004-2013 XWiki. All Rights Reserved.