FileDocCategorySizeDatePackage
ExamineSecurity.javaAPI DocExample572Sat Jan 13 12:56:16 GMT 2001javasec.samples.ch08

ExamineSecurity.java

package javasec.samples.ch08;

import java.security.*;
import java.util.*;

public class ExamineSecurity {
    public static void main(String args[]) {
        try {
            Provider p[] = Security.getProviders();
            for (int i = 0; i < p.length; i++) {
                System.out.println(p[i]);
                for (Enumeration e = p[i].keys(); e.hasMoreElements();)
                    System.out.println("\t" + e.nextElement());
            }
        }
        catch (Exception e) {
            System.out.println(e);
        }
    }
}