Searched refs:keyFile (Results 1 – 6 of 6) 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()109 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()127 File keyFile = getKeyFile(keyName); in deleteKey() local128 if (!keyFile.exists()) { in deleteKey()[all …]
76 private static String readPassword(File keyFile) { in readPassword() argument78 System.out.print("Enter password for " + keyFile + " (password will not be hidden): "); in readPassword()97 private static PKCS8EncodedKeySpec decryptPrivateKey(byte[] encryptedPrivateKey, File keyFile) in decryptPrivateKey() argument107 char[] password = readPassword(keyFile).toCharArray(); in decryptPrivateKey()118 System.err.println("signapk: Password for " + keyFile + " may be bad."); in decryptPrivateKey()
205 String keyFile = baseName + ".key"; in startTrace() local212 file = new File(keyFile); in startTrace()
1565 File keyFile = getUserKeyFile(); in writeKey() local1567 if (keyFile == null) { in writeKey()1576 FileUtils.setPermissions(keyFile.toString(), in writeKey()1587 File keyFile = getUserKeyFile(); in writeKeys() local1589 if (keyFile == null) { in writeKeys()1593 atomicKeyFile = new AtomicFile(keyFile); in writeKeys()1612 File keyFile = getUserKeyFile(); in deleteKeyFile() local1613 if (keyFile != null) { in deleteKeyFile()1614 keyFile.delete(); in deleteKeyFile()1828 AdbKeyStore(File keyFile) { in AdbKeyStore() argument[all …]
202 private static String readPassword(File keyFile) { in readPassword() argument206 System.out.print("Enter password for " + keyFile + " (password will not be hidden): "); in readPassword()215 if ((pwd = console.readPassword("[%s]", "Enter password for " + keyFile)) != null) { in readPassword()232 private static PKCS8EncodedKeySpec decryptPrivateKey(byte[] encryptedPrivateKey, File keyFile) in decryptPrivateKey() argument242 char[] password = readPassword(keyFile).toCharArray(); in decryptPrivateKey()253 System.err.println("signapk: Password for " + keyFile + " may be bad."); in decryptPrivateKey()
1029 private boolean isKeyInFile(String key, File keyFile) throws Exception { in isKeyInFile() argument1033 if (keyFile.exists()) { in isKeyInFile()1034 try (BufferedReader in = new BufferedReader(new FileReader(keyFile))) { in isKeyInFile()