in src/java/org/apache/fulcrum/jce/crypto/cli/CLI2.java [117:150]
private static void printInfo() {
CryptoUtilJ8 cryptoUtilJ8 = CryptoUtilJ8.getInstance();
System.out.println("");
System.out.println("\t| Default Crypto factory class: \t" + cryptoUtilJ8.getCryptoStreamFactory().getClass());
System.out.println("\t|_Default Algorithm used: \t" + cryptoUtilJ8.getCryptoStreamFactory().getAlgorithm());
for (int i = 0; i < CryptoParametersJ8.LISTS.length; i++) {
List<String> list = CryptoParametersJ8.LISTS[i];
String type = CryptoParametersJ8.PROVIDER_TYPES[i];
System.out.println("\t|Algorithms (unchecked) supported: \t" + list);
List<String> result = CryptoParametersJ8.getSupportedAlgos(list, type, true);
Set<String> resultSet = new LinkedHashSet<String>(result);
resultSet.addAll( CryptoParametersJ8.getSupportedAlgos(list, type, false) );
System.out.println(
String.format("\t|_Matched supported %2$s:\t%1$s",
(resultSet), type));
}
List<String> supportedAlgos = CryptoParametersJ8.init();
System.out.println(
String.format("\t|Effectively supported from %2$ss:\t*** %1$s ***",
supportedAlgos, Arrays.toString( CryptoParametersJ8.PROVIDER_TYPES) ));
if (debug) {
Arrays.stream(CryptoParametersJ8.TYPES.values()).forEach(t -> {
CryptoUtilJ8 testcu = CryptoUtilJ8.getInstance(t);
System.out.println("\t| Crypto factory class: \t" + testcu.getCryptoStreamFactory().getClass());
System.out.println("\t|_Algorithm used: \t" + testcu.getCryptoStreamFactory().getAlgorithm());
});
}
System.out.println(
"\t|_ More Info: https://docs.oracle.com/javase/8/docs/technotes/guides/security/StandardNames.html\r\n");
}