MainClass.java Source code

Java tutorial

Introduction

Here is the source code for MainClass.java

Source

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

public class MainClass {
    public static void main(String[] args) {
        Provider provider = Security.getProvider("BC");

        Iterator it = provider.keySet().iterator();

        while (it.hasNext()) {
            String entry = (String) it.next();
            if (entry.startsWith("Alg.Alias.")) {
                entry = entry.substring("Alg.Alias.".length());
            }
            System.out.println(entry);
        }
    }
}