Esempio n. 1
0
 private ApiKey loadLine(String line) {
   ApiKey key = null;
   String[] splitted = line.split(DELIMITER, 2);
   if (splitted.length == 2 && !splitted[0].isEmpty() && !splitted[1].isEmpty()) {
     key = new ApiKey();
     key.setKeyId(Integer.parseInt(splitted[0]));
     key.setVerificationString(splitted[1]);
   }
   return key;
 }