code: protected void transformPassword(final UsernamePasswordCredential userPass) throws FailedLoginException, AccountNotFoundException {
          if (StringUtils.isBlank(userPass.getPassword())) {
              throw new FailedLoginException("Password is null.");
          }
          LOGGER.debug("Attempting to encode credential password via [{}] for [{}]", this.passwordEncoder.getClass().getName(), userPass.getUsername());
          val transformedPsw = this.passwordEncoder.encode(userPass.getPassword());
          if (StringUtils.isBlank(transformedPsw)) {
              throw new AccountNotFoundException("Encoded password is null.");
          }
          userPass.setPassword(transformedPsw);
      }
docs: Transform password.
  
  @param userPass the user pass
  @throws FailedLoginException     the failed login exception
  @throws AccountNotFoundException the account not found exception