@Override
    public boolean store(final PasswordChangeRequest changeRequest) {
        val username = changeRequest.getUsername();
        val password = changeRequest.toPassword();
        val encodedPassword = encodePassword(password);
        val entity = new PasswordHistoryEntity();
        entity.setUsername(username);
        entity.setPassword(encodedPassword);
        history.add(entity);
        return true;
    }
This is {@link InMemoryPasswordHistoryService}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-pm-core/src/main/java/org/apereo/cas/pm/impl/history/InMemoryPasswordHistoryService.java