public synchronized void clear(){
  int i;
  int len=password.length;
  for (i=0; i < len; i++) {
    password[i]=0;
  }
  cleared=true;
}

public synchronized void clear ( ) { int i ; int len = password . length ; for ( i = 0 ; i < len ; i ++ ) { password [ i ] = 0 ; } cleared = true ; }
clears the password so that sensitive data is no longer present in memory . this should be called as soon as the password is no longer needed .
