Searched refs:keyFile (Results 1 – 2 of 2) sorted by relevance
74 File keyFile = getKeyFile(keyName); in generateNewKey() local75 if (keyFile.exists()) { in generateNewKey()88 if (!keyFile.createNewFile()) { in generateNewKey()92 FileOutputStream fos = new FileOutputStream(keyFile); in generateNewKey()97 FileUtils.setPermissions(keyFile.getName(), (FileUtils.S_IRUSR | FileUtils.S_IWUSR), in generateNewKey()108 File keyFile = new File(sysKeystoreDir, keyName + KEY_FILE_EXTENSION); in getKeyFile() local109 return keyFile; in getKeyFile()117 File keyFile = getKeyFile(keyName); in retrieveKey() local118 if (!keyFile.exists()) { in retrieveKey()121 return IoUtils.readFileAsByteArray(keyFile.toString()); in retrieveKey()[all …]
406 File keyFile = getUserKeyFile(); in writeKey() local408 if (keyFile == null) { in writeKey()412 if (!keyFile.exists()) { in writeKey()413 keyFile.createNewFile(); in writeKey()414 FileUtils.setPermissions(keyFile.toString(), in writeKey()419 FileOutputStream fo = new FileOutputStream(keyFile, true); in writeKey()430 File keyFile = getUserKeyFile(); in deleteKeyFile() local431 if (keyFile != null) { in deleteKeyFile()432 keyFile.delete(); in deleteKeyFile()