static String[] getRegisteredAlgorithms(String prefix, String[] exclusionPatterns)
{
final BouncyCastleProvider prov = (BouncyCastleProvider)Security.getProvider("BC");
List matches = new ArrayList();
Enumeration algos = prov.keys();
while (algos.hasMoreElements())
{
String algo = (String)algos.nextElement();
if (!algo.startsWith(prefix))
{