Created
September 23, 2014 17:22
-
-
Save chris-piekarski/156b8075693a348f690e to your computer and use it in GitHub Desktop.
Listing all JCE providers and the algorithms they support
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Provider[] providers = Security.getProviders(); | |
for (Provider p : providers) { | |
System.out.printf("%s/%s/%f\n", p.getName(), p.getInfo(), | |
p.getVersion()); | |
Set<Service> services = p.getServices(); | |
for (Service s : services) { | |
System.out.printf("\t%s/%s/%s\n", s.getType(), | |
s.getAlgorithm(), s.getClassName()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment