public static java.security.Provider | isSupport(java.lang.String algorithm, java.lang.String service)Verification: is algorithm supported or not
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;
}
|