public static boolean isSunMSCAPI(Provider provider){
  Class<?> sunMSCAPI=null;
  try {
    sunMSCAPI=Class.forName("sun.security.mscapi.SunMSCAPI");
  }
 catch (  Exception e) {
    return false;
  }
  if (sunMSCAPI == null) {
    return false;
  }
  return sunMSCAPI.isInstance(provider);
}

public static boolean isSunMSCAPI ( Provider provider ) { Class < ? > sunMSCAPI = null ; try { sunMSCAPI = Class . forName ( "sun.security.mscapi.SunMSCAPI" ) ; } catch ( Exception e ) { return false ; } if ( sunMSCAPI == null ) { return false ; } return sunMSCAPI . isInstance ( provider ) ; }
checks if the passed provider is an instance of " sun . security . mscapi . sunmscapi " .
