package com.mindprod.example;
import java.security.Provider;
import java.security.Security;
import static java.lang.System.*;
/**
* Test JCE, find providers and algorithms supported.
* <p/>
* .
*
* @author Roedy Green, Canadian Mind Products
* @version 1.0 2009-01-01 initial version
* @since 2009-01-01
*/
public final class TestJCE
{
/**
* Prepare a list of providers and services.
*
* @param args not used
*/
public static void main( String[] args )
{
out.println( "Algorithms Supported in Java "
+ System.getProperty( "java.version" )
+ " JCE." );
out.println( "====================" );
out.println( "Provider: type.algorithm -> className"
+ "\n aliases:"
+ "\n attributes:\n" );
Provider[] providers = Security.getProviders();
for ( Provider provider : providers )
{
out.println( "<><><>" + provider + "<><><>\n" );
for ( Provider.Service service : provider.getServices() )
{
out.println( service );
}
out.println();
}
}
}