code: public void clearPassword() {
          char[] password = this.password;
          this.password = null;
          if (password != null) {
              Arrays.fill(password, (char) 0);
          }
      }
docs: <p>Clear the password.</p>