public static boolean isWindowsKeyStore(String storetype){
  return storetype.equalsIgnoreCase("Windows-MY") || storetype.equalsIgnoreCase("Windows-ROOT");
}

public static boolean isWindowsKeyStore ( String storetype ) { return storetype . equalsIgnoreCase ( "Windows-MY" ) || storetype . equalsIgnoreCase ( "Windows-ROOT" ) ; }
returns true if keystore has a password . this is true except for mscapi keystores
