public AMPassword(char[] pw){
  int i;
  int length=pw.length;
  cleared=false;
  password=new char[length];
  System.arraycopy(pw,0,password,0,length);
}

public AMPassword ( char [ ] pw ) { int i ; int length = pw . length ; cleared = false ; password = new char [ length ] ; System . arraycopy ( pw , 0 , password , 0 , length ) ; }
creates a password from a char array , then wipes the char array .
