public void destroy(){
  state=State.DESTROYED;
  if (password != null) {
    Arrays.fill(password,(char)0);
  }
}

public void destroy ( ) { state = State . DESTROYED ; if ( password != null ) { Arrays . fill ( password , ( char ) 0 ) ; } }
destroys the object and clears keys and password info .
