public static String makeSigAlg(String digAlg,String encAlg){
  digAlg=digAlg.replace("-","");
  if (encAlg.equalsIgnoreCase("EC"))   encAlg="ECDSA";
  return digAlg + "with" + encAlg;
}

public static String makeSigAlg ( String digAlg , String encAlg ) { digAlg = digAlg . replace ( "-" , "" ) ; if ( encAlg . equalsIgnoreCase ( "EC" ) ) encAlg = "ECDSA" ; return digAlg + "with" + encAlg ; }
creates a signature algorithm name from a digest algorithm name and a encryption algorithm name .
