public static boolean isCurveAvailable(String curveName,KeyStoreType keyStoreType){
  if (isBouncyCastleKeyStore(keyStoreType)) {
    return true;
  }
  if (availableSunCurves.length == 0) {
    return false;
  }
  for (  String curve : availableSunCurves) {
    if (curve.contains(curveName)) {
      return true;
    }
  }
  return false;
}

public static boolean isCurveAvailable ( String curveName , KeyStoreType keyStoreType ) { if ( isBouncyCastleKeyStore ( keyStoreType ) ) { return true ; } if ( availableSunCurves . length == 0 ) { return false ; } for ( String curve : availableSunCurves ) { if ( curve . contains ( curveName ) ) { return true ; } } return false ; }
checks if the given named curve is known by the provider backing the keystoretype .
