Home
last modified time | relevance | path

Searched refs:jsonFile (Results 1 – 3 of 3) sorted by relevance

/tools/tradefederation/core/tests/src/com/android/tradefed/util/keystore/
DJSONFileKeyStoreFactoryTest.java218 File jsonFile = FileUtil.createTempFile("json-keystore-4", ".json"); in testLoadKeyStore_multipleHostNameMatches() local
219 FileUtil.writeToFile(jsonData, jsonFile); in testLoadKeyStore_multipleHostNameMatches()
224 setter.setOptionValue("host-based-key-store-file", jsonFile.getAbsolutePath()); in testLoadKeyStore_multipleHostNameMatches()
234 hostname, jsonFile.toString()), in testLoadKeyStore_multipleHostNameMatches()
237 FileUtil.recursiveDelete(jsonFile); in testLoadKeyStore_multipleHostNameMatches()
245 File jsonFile = FileUtil.createTempFile("json-keystore-5", ".json"); in testLoadKeyStore_badKeyStoreFile() local
246 FileUtil.writeToFile(jsonData, jsonFile); in testLoadKeyStore_badKeyStoreFile()
251 setter.setOptionValue("host-based-key-store-file", jsonFile.getAbsolutePath()); in testLoadKeyStore_badKeyStoreFile()
257 String.format("Failed to parse JSON data from file %s", jsonFile.toString()), in testLoadKeyStore_badKeyStoreFile()
260 FileUtil.recursiveDelete(jsonFile); in testLoadKeyStore_badKeyStoreFile()
/tools/tradefederation/core/global_configuration/com/android/tradefed/util/keystore/
DJSONFileKeyStoreFactory.java208 private JSONObject loadKeyStoreFromFile(File jsonFile) throws KeyStoreException { in loadKeyStoreFromFile() argument
211 String data = FileUtil.readStringFromFile(jsonFile); in loadKeyStoreFromFile()
215 String.format("Failed to read JSON key file %s: %s", jsonFile.toString(), e)); in loadKeyStoreFromFile()
218 String.format("Failed to parse JSON data from file %s", jsonFile.toString()), in loadKeyStoreFromFile()
DJSONFileKeyStoreClient.java41 public JSONFileKeyStoreClient(File jsonFile) throws KeyStoreException { in JSONFileKeyStoreClient() argument
42 mJsonFile = jsonFile; in JSONFileKeyStoreClient()