Angela,

On 11/16/22 20:31, Cantor, Angela T. wrote:
And one thing I forgot - yes Chris, could you please provide the code
you mentioned in case that is the issue?
Sure:

import java.security.Provider;
import java.security.Security;
import java.util.*;

/**
* A crude class for displaying all the information about security providers.
 *
 * When invoked with no arguments, this class prints out information about
 * all detected security providers. You can optionally list the security
 * providers you wish to query on the command line.
 *
 * @author Chris Schultz
 * @version $Revision: 1.3 $ $Date: 2012-02-08 16:09:13 $
 */
public class GetProviderInfo
{
    public static void main(String args[])
    {
        Provider providers[];
        if(null != args && 0 < args.length)
        {
            providers = new Provider[args.length];
            for(int i = 0; i < args.length; i++)
                providers[i] = Security.getProvider(args[i]);
        }
        else
        {
            providers = Security.getProviders();
        }

        for(Provider p : providers)
        {
System.out.println("Provider: " + p + " (name=" + p.getName() + ")");
            System.out.println("===============================");
            System.out.println("provider properties:");

            ArrayList<String> keys = new ArrayList<String>();

            // Grab only the String keys
            for(Object o : p.keySet())
                if(o instanceof String)
                    keys.add((String)o);

            Collections.sort(keys);

            for(String key : keys)
            {
                System.out.print(key);
                System.out.print('=');
                System.out.println(p.get(key));
            }

            System.out.println("-------------------------------");
        }

    }
}

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to