All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apereo.cas.jdbc.DatabasePasswordEncoder Maven / Gradle / Ivy

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