()
| 80 | } |
| 81 | |
| 82 | void run() throws IOException { |
| 83 | KeyProvider provider = |
| 84 | CryptoUtils.getKeyProvider(conf, new SecureRandom()); |
| 85 | if (provider == null) { |
| 86 | System.err.println("No key provider available."); |
| 87 | System.exit(1); |
| 88 | } |
| 89 | for(String keyName: provider.getKeyNames()) { |
| 90 | JsonWriter writer = new JsonWriter(this.writer); |
| 91 | printKey(writer, provider, keyName); |
| 92 | this.writer.write('\n'); |
| 93 | } |
| 94 | this.writer.close(); |
| 95 | } |
| 96 | |
| 97 | private static CommandLine parseOptions(String[] args) throws ParseException { |
| 98 | Options options = new Options(); |
no test coverage detected