code: public void clearPassword() {
          if (inputPassword != null) {
              for (int i = 0; i < inputPassword.length; i++)
                  inputPassword[i] = ' ';
          }
      }
docs: Clear the retrieved password.