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

com.github.lontime.extpac4j.impl.DefaultPasswordEncoder Maven / Gradle / Ivy

The newest version!
package com.github.lontime.extpac4j.impl;


import org.pac4j.core.credentials.password.PasswordEncoder;

/**
 * DefaultPasswordEncoder.
 * @author lontime
 * @since  1.0
 */
public class DefaultPasswordEncoder implements PasswordEncoder {
    @Override
    public String encode(String password) {
        return password;
    }

    @Override
    public boolean matches(String plainPassword, String encodedPassword) {
        return plainPassword.equals(encodedPassword);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy