org.apereo.cas.jdbc.DatabasePasswordEncoder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cas-server-support-jdbc-authentication Show documentation
Show all versions of cas-server-support-jdbc-authentication Show documentation
cas-server-support-jdbc-authentication
The newest version!
package org.apereo.cas.jdbc;
import java.util.Map;
/**
* This is {@link DatabasePasswordEncoder}.
*
* @author Misagh Moayyed
* @since 7.0.0
*/
@FunctionalInterface
public interface DatabasePasswordEncoder {
/**
* Encode the given password, give the results of the SQL query.
* The provided password is often supplied by the user, and is then encoded
* and digested using the query results here (salt, iterations, etc) that attached
* to that record and password. The final result, that is the encoded password, can then
* be compared with the actual encoded password found for the user record.
*
* @param password the password
* @param queryValues the query values
* @return the object
*/
String encode(String password, Map queryValues);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy