Example usage for java.security Provider entrySet

List of usage examples for java.security Provider entrySet

Introduction

In this page you can find the example usage for java.security Provider entrySet.

Prototype

Set entrySet

To view the source code for java.security Provider entrySet.

Click Source Link

Usage

From source file:it.cnr.icar.eric.common.security.KeyToolStripped.java

public static void dumpProviderInfo(String msg) {
    Provider[] providers = Security.getProviders();
    System.err.println(msg);/*from   w  w  w  .ja  v  a  2  s  . co  m*/
    for (int i = 0; i < providers.length; i++) {

        Provider provider = providers[i];
        System.err.println("Provider name: " + provider.getName());
        //System.err.println("Provider class: " + provider.getClass().getName());
        //System.err.println("Provider information: " + provider.getInfo());
        //System.err.println("Provider version: " + provider.getVersion());
        Set<Entry<Object, Object>> entries = provider.entrySet();
        @SuppressWarnings("unused")
        Iterator<Entry<Object, Object>> iterator = entries.iterator();

        /*
        while (iterator.hasNext()) {
        System.err.println("    Property entry: " + iterator.next());
        }
         */
    }
}