FileDocCategorySizeDatePackage
SpiEngUtils.javaAPI DocAndroid 1.5 API2127Wed May 06 22:41:06 BST 2009org.apache.harmony.security.tests.support

SpiEngUtils

public class SpiEngUtils extends Object
Additional class for verification spi-engine classes

Fields Summary
public static final String[]
invalidValues
Constructors Summary
Methods Summary
public static java.security.ProviderisSupport(java.lang.String algorithm, java.lang.String service)
Verification: is algorithm supported or not

param
algorithm
param
service
return


                     
           
        try {
            Provider[] provs = Security.getProviders(service.concat(".")
                    .concat(algorithm));
            if (provs == null) {
                return null;
            }
            return (provs.length == 0 ? null : provs[0]);
        } catch (Exception e) {
            return null;
        }