public boolean checkPassword(CharSequence password){
  lock.lock();
  try {
    return keyCrypter != null && checkAESKey(keyCrypter.deriveKey(checkNotNull(password)));
  }
  finally {
    lock.unlock();
  }
}

public boolean checkPassword ( CharSequence password ) { lock . lock ( ) ; try { return keyCrypter != null && checkAESKey ( keyCrypter . deriveKey ( checkNotNull ( password ) ) ) ; } finally { lock . unlock ( ) ; } }
check whether the password can decrypt the first key in the wallet . this can be used to check the validity of an entered password .
