private String verifyRestoreCode(String restoreCode,String code){
  if (code == null) {
    return "code_parameter_is_null";
  }
  if (restoreCode == null) {
    return "account_restore_code_is_null";
  }
  boolean validCode=passwordManager.matches(code,restoreCode);
  return validCode ? null : "code_does_not_match_restoreCode - code: '" + code + "' restoreCode: '"+ restoreCode+ "'";
}

private String verifyRestoreCode ( String restoreCode , String code ) { if ( code == null ) { return "code_parameter_is_null" ; } if ( restoreCode == null ) { return "account_restore_code_is_null" ; } boolean validCode = passwordManager . matches ( code , restoreCode ) ; return validCode ? null : "code_does_not_match_restoreCode - code: '" + code + "' restoreCode: '" + restoreCode + "'" ; }
verifies a user supplied restore code against the stored restore code . if the code cannot be verified a descriptive error string is returned .
