This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static boolean validateKeyFile(File fileHandle) { | |
final int fileSizeLimitKB = 8; | |
if (fileHandle.length() > fileSizeLimitKB * 1024) { | |
return false; | |
} | |
try { | |
InputStream is = new FileInputStream(fileHandle); | |
BufferedReader reader = new BufferedReader(new InputStreamReader(is)); |