Searched refs:keyFile (Results 1 – 2 of 2) sorted by relevance
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()
174 private static String readPassword(File keyFile) { in readPassword() argument178 (pwd = console.readPassword("[%s]", "Enter password for " + keyFile)) != null){ in readPassword()194 private static PKCS8EncodedKeySpec decryptPrivateKey(byte[] encryptedPrivateKey, File keyFile) in decryptPrivateKey() argument204 char[] password = readPassword(keyFile).toCharArray(); in decryptPrivateKey()215 System.err.println("signapk: Password for " + keyFile + " may be bad."); in decryptPrivateKey()