Vector algs = new Vector();
Provider provider = Security.getProvider(providerName);
if (provider == null)
return new String[0];
Enumeration e = provider.keys();
while (e.hasMoreElements()) {
String algorithm = (String) e.nextElement();
if (algorithm.startsWith(MESSAGEDIGEST_ID) && !algorithm.contains(" ")) {
algs.addElement(algorithm.substring(MESSAGEDIGEST_ID.length()));
}