code: public final void clearPassword() {
          if (password != null) {
              for (int i = 0; i < password.length; i++) {
                  password[i] = ' ';
              }
              password = null;
          }
      }
docs: Clears the internal copy of the password.