private byte[] encryptcommand = {(byte)0xa0, (byte)0xc1, (byte)0x00, (byte)0x00, (byte) 0x00};

Size: px
Start display at page:

Download "private byte[] encryptcommand = {(byte)0xa0, (byte)0xc1, (byte)0x00, (byte)0x00, (byte) 0x00};"

Transcription

1 /* *Utilisation des Java Card (U)SIM pour la sécurisation des communications et des données dans les applications sur téléphones mobiles Cette midlet est chargée de proposer une interface à l'utilisateur qui lui permette de déclencher l'envoi d'une information confidentielle à transmettre (chiffrée) par SMS. La midlet communique avec l'applet appropriée, récupère l'information chiffrée et l'expédie au contact indiqué Code de la midlet (listing 6) serge.chaumette at labri.fr jonathan.ouoba at labri.fr */ import javax.microedition.midlet.midlet; import javax.microedition.midlet.midletstatechangeexception; import javax.microedition.apdu.apduconnection; import javax.microedition.io.connector; import javax.wireless.messaging.*; import java.io.ioexception; import javax.microedition.io.connectionnotfoundexception; import javax.microedition.lcdui.commandlistener; import javax.microedition.lcdui.display; import javax.microedition.lcdui.displayable; import javax.microedition.lcdui.form; import javax.microedition.lcdui.item; import javax.microedition.lcdui.itemcommandlistener; import javax.microedition.lcdui.stringitem; import javax.microedition.lcdui.textfield; import javax.microedition.lcdui.command; public class Midlet_Misc extends MIDlet implements CommandListener, ItemCommandListener { private Display display; private Form form; private String smsport; private String phonenumber; private TextField stringitem; private StringItem commandreceive; private StringItem commandsend; private StringItem commandexit; private Command CMD_RECEIVE = new Command("Receive", Command.ITEM, 3); private Command CMD_SEND = new Command("Send", Command.ITEM, 2); private Command CMD_EXIT = new Command("Exit", Command.EXIT, 1); private Thread tapdu; private Send_APDU sapdu; private Thread tsms; private Send_SMS ssms; private Thread tssms; private Receive_SMS rsms; private byte[] tempbuffer = null; private byte[] encryptcommand = {(byte)0xa0, (byte)0xc1, (byte)0x00, (byte)0x00, (byte) 0x00; -1-

2 private byte[] decryptcommand = {(byte)0xa0, (byte)0xc3, (byte)0x00, (byte)0x00, (byte) 0x08, (byte)0x61, (byte)0x62, (byte)0x63, (byte)0x64, (byte)0x31, (byte)0x32, (byte)0x33, (byte )0x34, (byte)0x00; public Midlet_Misc() { display = Display.getDisplay(this); smsport = "50005"; phonenumber = " "; // create the main form with its component form = new Form("Demo Midlet - MISC"); stringitem = new TextField("Output", "", 100,0); stringitem.setlayout(item.layout_newline_after); form.append(stringitem); commandexit = new StringItem("", "Exit", Item.BUTTON); commandexit.setdefaultcommand(cmd_exit); commandexit.setitemcommandlistener(this); commandsend = new StringItem("", "Send", Item.BUTTON); commandsend.setlayout(item.layout_newline_before); commandsend.setdefaultcommand(cmd_send); commandsend.setitemcommandlistener(this); commandreceive = new StringItem("", "Receive", Item.BUTTON); commandreceive.setdefaultcommand(cmd_receive); commandreceive.setitemcommandlistener(this); form.append(commandsend); form.append(commandreceive); form.append(commandexit); form.setcommandlistener(this); // display the main screen public void showscreen() { display.setcurrent(form); protected void destroyapp(boolean arg0) throws MIDletStateChangeException { // TODO Auto-generated method stub protected void pauseapp() { // TODO Auto-generated method stub protected void startapp() throws MIDletStateChangeException { initapp(); showscreen(); -2-

3 public void initapp() { //application initialization operations //SMS Server Communication rsms = new Receive_SMS(smsPort,this); tsms = new Thread(rSMS); tsms.start(); // set the message of the stringitem public void setmessage(string text) { stringitem.setstring(text); //emission of encrypted SMS public void sendsms(string message) { ssms = new Send_SMS(smsPort,message,"",phoneNumber,this); tssms = new Thread(sSMS); tssms.start(); // fill the byte array to send as apdu command private void fill_apdu(byte[] apdu, String message) { short i; short length = (short)(message.length()-2); apdu[0] = (byte) 0xA0; apdu[1] = (byte) 0xC3; apdu[2] = (byte) 0x00; apdu[3] = (byte) 0x00; apdu[4] = (byte) length; for (i = 0; i < length; i++) apdu[i + 5] = message.getbytes()[i]; apdu[length + 5] = (byte) 0x00; //managenement of received encrypted SMS public void receivedsms(string message) { fill_apdu(tempbuffer, message); sapdu = new Send_APDU(this, tempbuffer, (byte)0xc3); tapdu = new Thread(sAPDU); tapdu.start(); // button action management public void commandaction(command c, Item i) { // exit the application if (c == CMD_EXIT) { destroyapp(false); catch (Exception ex) { -3-

4 setmessage("impossible to exit..."); notifydestroyed(); else if (c == CMD_SEND) { sapdu = new Send_APDU(this, encryptcommand, (byte)0xc1); tapdu = new Thread(sAPDU); tapdu.start(); else if (c == CMD_RECEIVE) { sapdu = new Send_APDU(this, decryptcommand, (byte)0xc3); tapdu = new Thread(sAPDU); tapdu.start(); public void commandaction(command com, Displayable d) { // TODO Auto-generated method stub //class to send apdu command an get apdu response (encryption and decryption operations) class Send_APDU implements Runnable { private Midlet_Misc parent; private APDUConnection apduconnectionref = null; private byte[] data = null; private byte[] response = null; private byte tag; Send_APDU(Midlet_Misc parent, byte[] data, byte tag) { this.parent = parent; this.data = data; this.tag = tag; private void openapduconnection() { //Opening SATSA APDU connection parent.setmessage("opening"); apduconnectionref = (APDUConnection) Connector.open("apdu:0;target=A "); parent.setmessage("opening Done - "+String.valueOf(data.length)); catch (ConnectionNotFoundException ex) { parent.setmessage("not able to make connection "); catch (IOException ex) { //parent.display_alert(alerttype.info, "INFO","Error opening APDU 1...", 2000); parent.setmessage("error Opening..."); private void tcloseapduconnection() { -4-

5 if (apduconnectionref!= null) { //Closing SATSA APDU connection apduconnectionref.close(); catch (Exception ex) { parent.setmessage("error closing APDU..."); private byte[] sendapdu(byte[] messapdu) { byte[] result = null; //Sending APDU command result = apduconnectionref.exchangeapdu(messapdu); catch (IOException ioerr) { parent.setmessage("can't send APDU..."); catch (IllegalArgumentException argerr) { parent.setmessage("illegal APDU..."); return result; public static String arraytohex(byte[] data) { StringBuffer sb = new StringBuffer(); for (int i = 0; i < data.length; i++) { String bs = Integer.toHexString(data[i] & 0xFF); if (bs.length() == 1) { sb.append(0); sb.append(bs); sb.append((i + 1) % 8 == 0? '\n' : ' '); return sb.tostring(); public void run() { openapduconnection(); response = sendapdu(data); if (tag == (byte) 0xC1) { parent.setmessage(arraytohex(response)); parent.sendsms(new String(response)); if (tag == (byte) 0xC3) { //parent.setmessage("\n" + new String(response)); parent.setmessage(arraytohex(response)); tcloseapduconnection(); -5-

6 //class that handles the reception of SMS class Receive_SMS implements Runnable, MessageListener{ private Midlet_Misc parent; private String smsport; private MessageConnection smsconn; private Message msg; private Thread tsms; private boolean running; Receive_SMS(String smsport,midlet_misc parent) { this.parent = parent; this.smsport = smsport; running = true; String smsconnection = "sms://:" + smsport; //Open the message connection if (smsconn == null) { smsconn = (MessageConnection)Connector.open(smsConnection); smsconn.setmessagelistener(this); parent.setmessage("#sms connection opened"); catch (IOException ioe) { ioe.printstacktrace(); System.out.println(smsConnection); smsconn.setmessagelistener(this); catch (IOException ioe) { ioe.printstacktrace(); parent.setmessage("sms connection mode error"); tsms = new Thread(this); tsms.start(); public void closeconnection() { if (smsconn!= null) { smsconn.close(); catch (IOException e) { //Ignore any errors on shutdown System.out.println("Closing intermediary SMS connection..."); public void notifyincomingmessage(messageconnection conn) { //tsms = new Thread(this); -6-

7 //tsms.start(); public void run() { while (running) { msg = smsconn.receive(); if (msg!= null) { String receivedmessage = ((TextMessage)msg).getPayloadText(); parent.setmessage("sms received from "+msg.getaddress()); parent.receivedsms(receivedmessage); catch (IOException e) { e.printstacktrace(); //class that handles the emission of SMS class Send_SMS implements Runnable { private String message; private String adr; private String myself; private Midlet_Misc parent; private String smsport; private String address; private String desadr; Send_SMS (String smsport,string message,string myself,string adr,midlet_misc parent) { this.smsport = smsport; this.message = message; this.parent = parent; this.adr = adr; this.myself = myself; public void run() { desadr = "sms://" + adr; address = desadr + ":" + smsport; MessageConnection smsconn = null; // open the message connection smsconn = (MessageConnection)Connector.open(address); TextMessage txtmessage =(TextMessage)smsconn.newMessage(MessageConnection. TEXT_MESSAGE); txtmessage.setaddress(address); txtmessage.setpayloadtext(message); smsconn.send(txtmessage); //parent.setmessage("#sent via sms"); -7-

8 catch (Throwable t) { parent.setmessage("send caught: "+smsport); t.printstacktrace(); // close the message connection if (smsconn!= null) { smsconn.close(); //parent.sendmessagesms(); catch (IOException ioe) { parent.setmessage("closing connection caught"); ioe.printstacktrace(); -8-

Introduction to Mobile Phone. Programming in Java Me

Introduction to Mobile Phone. Programming in Java Me Introduction to Mobile Phone Programming in Java Me (prepared for CS/ECE 707, UW-Madison) Author: Leszek Wiland and Suman Banerjee 1 Content 1. Introduction 2. Setting up programming environment 3. Hello

More information

Using MIDP to Send SMS Messages

Using MIDP to Send SMS Messages Java 2 Micro Edition Sockets and SMS F. Ricci 2010/2011 Content Other Connection Types Responding to Incoming Connections Socket and Server Socket Security Permissions Security domains Midlet signing Wireless

More information

TP1 : Correction. Rappels : Stream, Thread et Socket TCP

TP1 : Correction. Rappels : Stream, Thread et Socket TCP Université Paris 7 M1 II Protocoles réseaux TP1 : Correction Rappels : Stream, Thread et Socket TCP Tous les programmes seront écrits en Java. 1. (a) Ecrire une application qui lit des chaines au clavier

More information

The Software Engineering of Mobile Application Development

The Software Engineering of Mobile Application Development The Software Engineering of Mobile Application Development Dr. Christelle Scharff Pace University, NY, USA Thanks: NCIIA IBM Agenda Audience Context Java ME Process Mobiles Java ME Android Designing Coding

More information

Mobile application development J2ME U N I T I I

Mobile application development J2ME U N I T I I Mobile application development J2ME U N I T I I Overview J2Me Layered Architecture Small Computing Device requirements Run Time Environment Java Application Descriptor File Java Archive File MIDlet Programming

More information

JAVA Program For Processing SMS Messages

JAVA Program For Processing SMS Messages JAVA Program For Processing SMS Messages Krishna Akkulu The paper describes the Java program implemented for the MultiModem GPRS wireless modem. The MultiModem offers standards-based quad-band GSM/GPRS

More information

Licence Informatique Année 2005-2006. Exceptions

Licence Informatique Année 2005-2006. Exceptions Université Paris 7 Java Licence Informatique Année 2005-2006 TD n 8 - Correction Exceptions Exercice 1 La méthode parseint est spécifiée ainsi : public static int parseint(string s) throws NumberFormatException

More information

MIDlet development with J2ME and MIDP

MIDlet development with J2ME and MIDP MIDlet development with J2ME and MIDP ibm.com/developerworks Table of Contents If you're viewing this document online, you can click any of the topics below to link directly to that section. 1. Introduction...

More information

::. Contenuti della lezione *+ ') $ &,!!!$!-,.../- ' % + &

::. Contenuti della lezione *+ ') $ &,!!!$!-,.../- ' % + & ! ""# ::. Contenuti della lezione $%&' % ('))')') *+ ') $ &,!!!$!-,.../- ' % + & ::. Le diverse edizioni di Java: J2EE,J2SE,J2ME!" # " $ ::. Le diverse edizioni di Java: J2EE,J2SE,J2ME % & ' () * +, (

More information

Brazil + JDBC Juin 2001, douin@cnam.fr http://jfod.cnam.fr/tp_cdi/douin/

Brazil + JDBC Juin 2001, douin@cnam.fr http://jfod.cnam.fr/tp_cdi/douin/ Brazil + JDBC Juin 2001, douin@cnam.fr http://jfod.cnam.fr/tp_cdi/douin/ version du 26 Mai 2003 : JDBC-SQL et Brazil pré-requis : lecture de Tutorial JDBC de Sun Bibliographie Brazil [Bra00]www.sun.com/research/brazil

More information

TP : Système de messagerie - Fichiers properties - PrepareStatement

TP : Système de messagerie - Fichiers properties - PrepareStatement TP : Système de messagerie - Fichiers properties - PrepareStatement exelib.net Une société souhaite mettre en place un système de messagerie entre ses employés. Les travaux de l équipe chargée de l analyse

More information

Java Programming Language

Java Programming Language Lecture 1 Part II Java Programming Language Additional Features and Constructs Topics in Quantitative Finance: Numerical Solutions of Partial Differential Equations Instructor: Iraj Kani Subclasses and

More information

Creating a Simple, Multithreaded Chat System with Java

Creating a Simple, Multithreaded Chat System with Java Creating a Simple, Multithreaded Chat System with Java Introduction by George Crawford III In this edition of Objective Viewpoint, you will learn how to develop a simple chat system. The program will demonstrate

More information

})] The Transborder Immigrant Tool La herramienta transfronteriza para inmigrantes

})] The Transborder Immigrant Tool La herramienta transfronteriza para inmigrantes [({ )] The Transborder Immigrant Tool La herramienta transfronteriza para inmigrantes 978-0-9915719-1-8 ACKNOWLEDGMENTS The Transborder Immigrant Tool TABLE OF CONTENTS 1 5 11 13 16 17 20 26 44 del desierto

More information

Langages Orientés Objet Java

Langages Orientés Objet Java Langages Orientés Objet Java Exceptions Arnaud LANOIX Université Nancy 2 24 octobre 2006 Arnaud LANOIX (Université Nancy 2) Langages Orientés Objet Java 24 octobre 2006 1 / 32 Exemple public class Example

More information

Programmation RMI Sécurisée

Programmation RMI Sécurisée Programmation RMI Sécurisée 5 janvier 2012 D après http ://blogs.oracle.com/lmalventosa/entry/using_the_ssl_tls_based. A Code RMI de Base A.1 Les fichiers Hello.java public i n t e r f a c e Hello extends

More information

Communicating with a Barco projector over network. Technical note

Communicating with a Barco projector over network. Technical note Communicating with a Barco projector over network Technical note MED20080612/00 12/06/2008 Barco nv Media & Entertainment Division Noordlaan 5, B-8520 Kuurne Phone: +32 56.36.89.70 Fax: +32 56.36.883.86

More information

Remote Method Invocation

Remote Method Invocation 1 / 22 Remote Method Invocation Jean-Michel Richer jean-michel.richer@univ-angers.fr http://www.info.univ-angers.fr/pub/richer M2 Informatique 2010-2011 2 / 22 Plan Plan 1 Introduction 2 RMI en détails

More information

Tutorial Reference Manual. Java WireFusion 4.1

Tutorial Reference Manual. Java WireFusion 4.1 Tutorial Reference Manual Java WireFusion 4.1 Contents INTRODUCTION...1 About this Manual...2 REQUIREMENTS...3 User Requirements...3 System Requirements...3 SHORTCUTS...4 DEVELOPMENT ENVIRONMENT...5 Menu

More information

Les fragments. Programmation Mobile Android Master CCI. Une application avec deux fragments. Premier layout : le formulaire

Les fragments. Programmation Mobile Android Master CCI. Une application avec deux fragments. Premier layout : le formulaire Programmation Mobile Android Master CCI Bertrand Estellon Aix-Marseille Université March 23, 2015 Bertrand Estellon (AMU) Android Master CCI March 23, 2015 1 / 266 Les fragments Un fragment : représente

More information

Annexe - OAuth 2.0. 1 Introduction. Xavier de Rochefort xderoche@labri.fr - labri.fr/~xderoche 15 mai 2014

Annexe - OAuth 2.0. 1 Introduction. Xavier de Rochefort xderoche@labri.fr - labri.fr/~xderoche 15 mai 2014 1 Introduction Annexe - OAuth 2.0. Xavier de Rochefort xderoche@labri.fr - labri.fr/~xderoche 15 mai 2014 Alternativement à Flickr, notre serveur pourrait proposer aux utilisateurs l utilisation de leur

More information

Cours de Java. Sciences-U Lyon. Java - Introduction Java - Fondamentaux Java Avancé. http://www.rzo.free.fr

Cours de Java. Sciences-U Lyon. Java - Introduction Java - Fondamentaux Java Avancé. http://www.rzo.free.fr Cours de Java Sciences-U Lyon Java - Introduction Java - Fondamentaux Java Avancé http://www.rzo.free.fr Pierre PARREND 1 Octobre 2004 Sommaire Java Introduction Java Fondamentaux Java Avancé GUI Graphical

More information

Consuming a Web Service(SOAP and RESTful) in Java. Cheat Sheet For Consuming Services in Java

Consuming a Web Service(SOAP and RESTful) in Java. Cheat Sheet For Consuming Services in Java Consuming a Web Service(SOAP and RESTful) in Java Cheat Sheet For Consuming Services in Java This document will provide a user the capability to create an application to consume a sample web service (Both

More information

! "# $%&'( ) * ).) "%&' 1* ( %&' ! "%&'2 (! ""$ 1! ""3($

! # $%&'( ) * ).) %&' 1* ( %&' ! %&'2 (! $ 1! 3($ ! "# $%&'( ) * +,'-( ).) /"0'" 1 %&' 1* ( %&' "%&'! "%&'2 (! ""$ 1! ""3($ 2 ', '%&' 2 , 3, 4( 4 %&'( 2(! ""$ -5%&'* -2%&'(* ) * %&' 2! ""$ -*! " 4 , - %&' 3( #5! " 5, '56! "* * 4(%&'(! ""$ 3(#! " 42/7'89.:&!

More information

Liste d'adresses URL

Liste d'adresses URL Liste de sites Internet concernés dans l' étude Le 25/02/2014 Information à propos de contrefacon.fr Le site Internet https://www.contrefacon.fr/ permet de vérifier dans une base de donnée de plus d' 1

More information

OpenOffice.org Extensions development in Java with NetBeans in practise. Jürgen Schmidt OpenOffice.org Sun Microsystems, Inc.

OpenOffice.org Extensions development in Java with NetBeans in practise. Jürgen Schmidt OpenOffice.org Sun Microsystems, Inc. OpenOffice.org Extensions development in Java with NetBeans in practise Jürgen Schmidt OpenOffice.org Sun Microsystems, Inc. 1 OpenOffice.org Extensions development in Java with NetBeans in practise Motivation

More information

M1 UE3 Examen final 2014 / 2015 : China infrastructures strategy

M1 UE3 Examen final 2014 / 2015 : China infrastructures strategy UE3 : Marchés internationaux Amonts M1 UE3 Examen final 2014 / 2015 : China infrastructures strategy Pascal ALBERTINI 14/05/2015 L7N 1 China Infrastructures Strategy Vous, Patrick KRON, Président d Alstom,

More information

Introduction to Java. Module 12: Networking (Java Sockets) Prepared by Costantinos Costa for EPL 233. ΕΠΛ233 Αντικειμενοστρεφής Προγραμματισμός 1

Introduction to Java. Module 12: Networking (Java Sockets) Prepared by Costantinos Costa for EPL 233. ΕΠΛ233 Αντικειμενοστρεφής Προγραμματισμός 1 Introduction to Java Module 12: Networking (Java Sockets) Prepared by Costantinos Costa for EPL 233 ΕΠΛ233 Αντικειμενοστρεφής Προγραμματισμός 1 What Is a Socket? A socket is one end-point of a two-way

More information

Overview of Web Services API

Overview of Web Services API 1 CHAPTER The Cisco IP Interoperability and Collaboration System (IPICS) 4.5(x) application programming interface (API) provides a web services-based API that enables the management and control of various

More information

Socket-based Network Communication in J2SE and J2ME

Socket-based Network Communication in J2SE and J2ME Socket-based Network Communication in J2SE and J2ME 1 C/C++ BSD Sockets in POSIX POSIX functions allow to access network connection in the same way as regular files: There are special functions for opening

More information

An Android-based Instant Message Application

An Android-based Instant Message Application An Android-based Instant Message Application Qi Lai, Mao Zheng and Tom Gendreau Department of Computer Science University of Wisconsin - La Crosse La Crosse, WI 54601 mzheng@uwlax.edu Abstract One of the

More information

race conditions Image courtesy of photostock / FreeDigitalPhotos.net Flavia Rainone - Principal Software Engineer

race conditions Image courtesy of photostock / FreeDigitalPhotos.net Flavia Rainone - Principal Software Engineer Boston race conditions? Image courtesy of photostock / FreeDigitalPhotos.net 2 race conditions Race conditions arise in software when separate computer processes or threads of execution depend on some

More information

Lecture J - Exceptions

Lecture J - Exceptions Lecture J - Exceptions Slide 1 of 107. Exceptions in Java Java uses the notion of exception for 3 related (but different) purposes: Errors: an internal Java implementation error was discovered E.g: out

More information

TP N 10 : Gestion des fichiers Langage JAVA

TP N 10 : Gestion des fichiers Langage JAVA TP N 10 : Gestion des fichiers Langage JAVA Rappel : Exemple d utilisation de FileReader/FileWriter import java.io.*; public class Copy public static void main(string[] args) throws IOException File inputfile

More information

POB-JAVA Documentation

POB-JAVA Documentation POB-JAVA Documentation 1 INTRODUCTION... 4 2 INSTALLING POB-JAVA... 5 Installation of the GNUARM compiler... 5 Installing the Java Development Kit... 7 Installing of POB-Java... 8 3 CONFIGURATION... 9

More information

ExempleRMI.java. // Fichier de defintion des droits et proprietes // System.setProperty("java.security.policy","../server.java.

ExempleRMI.java. // Fichier de defintion des droits et proprietes // System.setProperty(java.security.policy,../server.java. ExempleRMI.java import java.lang.*; import java.rmi.registry.*; import java.rmi.server.*; import java.io.*; import java.util.*; ExempleRMI.java import pkgexemple.*; public class ExempleRMI public static

More information

Custom Encryption in Siebel & Siebel Web Service Security Test Guide 1.0

Custom Encryption in Siebel & Siebel Web Service Security Test Guide 1.0 Custom Encryption in Siebel & Siebel Web Security Test Guide 1.0 Muralidhar Reddy Introduction Siebel (7.5 onwards and upto 8.1) natively supports 2 Types of Inbound web Security 1. WS Security UserName

More information

Arduino & Android. A How to on interfacing these two devices. Bryant Tram

Arduino & Android. A How to on interfacing these two devices. Bryant Tram Arduino & Android A How to on interfacing these two devices Bryant Tram Contents 1 Overview... 2 2 Other Readings... 2 1. Android Debug Bridge -... 2 2. MicroBridge... 2 3. YouTube tutorial video series

More information

www.virtualians.pk CS506 Web Design and Development Solved Online Quiz No. 01 www.virtualians.pk

www.virtualians.pk CS506 Web Design and Development Solved Online Quiz No. 01 www.virtualians.pk CS506 Web Design and Development Solved Online Quiz No. 01 Which of the following is a general purpose container? JFrame Dialog JPanel JApplet Which of the following package needs to be import while handling

More information

Capario B2B EDI Transaction Connection. Technical Specification for B2B Clients

Capario B2B EDI Transaction Connection. Technical Specification for B2B Clients Capario B2B EDI Transaction Connection Technical Specification for B2B Clients Revision History Date Version Description Author 02/03/2006 Draft Explanation for external B2B clients on how to develop a

More information

RMI Client Application Programming Interface

RMI Client Application Programming Interface RMI Client Application Programming Interface Java Card 2.2 Java 2 Platform, Micro Edition Sun Microsystems, Inc. 901 San Antonio Road Palo Alto, CA 94303 U.S.A. 650-960-1300 June, 2002 Copyright 2002 Sun

More information

"Internationalization vs. Localization: The Translation of Videogame Advertising"

Internationalization vs. Localization: The Translation of Videogame Advertising Article "Internationalization vs. Localization: The Translation of Videogame Advertising" Raquel de Pedro Ricoy Meta : journal des traducteurs / Meta: Translators' Journal, vol. 52, n 2, 2007, p. 260-275.

More information

User s Guide. Sun Java TM Wireless Toolkit for CLDC Version 2.5.2. Sun Microsystems, Inc. www.sun.com

User s Guide. Sun Java TM Wireless Toolkit for CLDC Version 2.5.2. Sun Microsystems, Inc. www.sun.com User s Guide Sun Java TM Wireless Toolkit for CLDC Version 2.5.2 Sun Microsystems, Inc. www.sun.com v252 September 2007 Copyright 2007 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, California

More information

Mobile Software Application Development. Tutorial. Caesar Ogole. April 2006

Mobile Software Application Development. Tutorial. Caesar Ogole. April 2006 Mobile Software Application Development Tutorial By Caesar Ogole April 2006 About the Tutorial: In this tutorial, you will learn how to build a cross-platform mobile software application that runs on the

More information

file://c:\dokumente und Einstellungen\Marco Favorito\Desktop\ScanCmds.html

file://c:\dokumente und Einstellungen\Marco Favorito\Desktop\ScanCmds.html file:c:\dokumente und Einstellungen\Marco Favorito\Desktop\ScanCmds.html Seite 1 von 5 ScanCmds.java ------------------------------------------------------------------------------- ScanCmds Demontration

More information

e ag u g an L g ter lvin v E ram Neal G g ro va P Ja

e ag u g an L g ter lvin v E ram Neal G g ro va P Ja Evolving the Java Programming Language Neal Gafter Overview The Challenge of Evolving a Language Design Principles Design Goals JDK7 and JDK8 Challenge: Evolving a Language What is it like trying to extend

More information

OBJECT ORIENTED PROGRAMMING LANGUAGE

OBJECT ORIENTED PROGRAMMING LANGUAGE UNIT-6 (MULTI THREADING) Multi Threading: Java Language Classes The java.lang package contains the collection of base types (language types) that are always imported into any given compilation unit. This

More information

Mobile Application Development. MIDP & GUI Programmierung

Mobile Application Development. MIDP & GUI Programmierung J2ME MIDlets Mobile Application Development MIDP & GUI Programmierung Christoph Denzler Fachhochschule Nordwestschweiz Institut für Mobile und Verteilte Systeme Lernziele Sie wissen wie ein MIDlet kontrolliert

More information

MapReduce Détails Optimisation de la phase Reduce avec le Combiner

MapReduce Détails Optimisation de la phase Reduce avec le Combiner MapReduce Détails Optimisation de la phase Reduce avec le Combiner S'il est présent, le framework insère le Combiner dans la pipeline de traitement sur les noeuds qui viennent de terminer la phase Map.

More information

16.1 DataFlavor. 16.1.1 DataFlavor Methods. Variables

16.1 DataFlavor. 16.1.1 DataFlavor Methods. Variables In this chapter: DataFlavor Transferable Interface ClipboardOwner Interface Clipboard StringSelection UnsupportedFlavorException Reading and Writing the Clipboard 16 Data Transfer One feature that was

More information

JAVA - EXCEPTIONS. An exception can occur for many different reasons, below given are some scenarios where exception occurs.

JAVA - EXCEPTIONS. An exception can occur for many different reasons, below given are some scenarios where exception occurs. http://www.tutorialspoint.com/java/java_exceptions.htm JAVA - EXCEPTIONS Copyright tutorialspoint.com An exception orexceptionalevent is a problem that arises during the execution of a program. When an

More information

Java Management Extensions SNMP Manager API

Java Management Extensions SNMP Manager API Java Management Extensions SNMP Manager API Sun Microsystems, Inc. 901 San Antonio Road Palo Alto, CA 94303 U.S.A. 650-960-1300 August 1999, Draft 2.0 Copyright 1999 Sun Microsystems, Inc., 901 San Antonio

More information

CS 111 Classes I 1. Software Organization View to this point:

CS 111 Classes I 1. Software Organization View to this point: CS 111 Classes I 1 Software Organization View to this point: Data Objects and primitive types Primitive types operators (+, /,,*, %). int, float, double, char, boolean Memory location holds the data Objects

More information

European Access Point for Truck Parking Data

European Access Point for Truck Parking Data Delegated Regulation (EU) N 885/2013 of 15 May 2013 with regard to the provision of information services for safe and secure parking places for trucks and commercial vehicles European Access Point for

More information

Continuous Integration Part 2

Continuous Integration Part 2 1 Continuous Integration Part 2 This blog post is a follow up to my blog post Continuous Integration (CI), in which I described how to execute test cases in Code Tester (CT) in a CI environment. What I

More information

How to develop your own app

How to develop your own app How to develop your own app It s important that everything on the hardware side and also on the software side of our Android-to-serial converter should be as simple as possible. We have the advantage that

More information

Paillier Threshold Encryption Toolbox

Paillier Threshold Encryption Toolbox Paillier Threshold Encryption Toolbox October 23, 2010 1 Introduction Following a desire for secure (encrypted) multiparty computation, the University of Texas at Dallas Data Security and Privacy Lab created

More information

Bangla Text Input and Rendering Support for Short Message Service on Mobile Devices

Bangla Text Input and Rendering Support for Short Message Service on Mobile Devices Bangla Text Input and Rendering Support for Short Message Service on Mobile Devices Tofazzal Rownok, Md. Zahurul Islam and Mumit Khan Department of Computer Science and Engineering, BRAC University, Dhaka,

More information

Tutorial for Creating Resources in Java - Client

Tutorial for Creating Resources in Java - Client Tutorial for Creating Resources in Java - Client Overview Overview 1. Preparation 2. Creation of Eclipse Plug-ins 2.1 The flight plugin 2.2 The plugin fragment for unit tests 3. Create an integration test

More information

Smart Card Based User Authentication

Smart Card Based User Authentication Smart Card Based User Authentication A thesis submitted in partial fulfilment of the requirements for the degree of Master of Science By BRANDON JAMES B.S., Wright State University, June 2010 2012 Wright

More information

gomobi Traffic Switching Guide Version 0.9, 28 September 2010

gomobi Traffic Switching Guide Version 0.9, 28 September 2010 gomobi Traffic Switching Guide Version 0.9, 28 September 2010 Mobile/Desktop Traffic Switching... 3 Summary of Options... 3 Single Site Solutions... 4 Server-side Switching Code... 4 JavaScript Switching

More information

Developing Mobile Wireless Applications Kris Read and Frank Maurer University of Calgary

Developing Mobile Wireless Applications Kris Read and Frank Maurer University of Calgary Developing Mobile Wireless Applications Kris Read and Frank Maurer University of Calgary When we talk about Web content, we typically use document metaphors saving our places with bookmarks, viewing and

More information

Threads & Tasks: Executor Framework

Threads & Tasks: Executor Framework Threads & Tasks: Executor Framework Introduction & Motivation WebServer Executor Framework Callable and Future 12 April 2012 1 Threads & Tasks Motivations for using threads Actor-based Goal: Create an

More information

Building a Multi-Threaded Web Server

Building a Multi-Threaded Web Server Building a Multi-Threaded Web Server In this lab we will develop a Web server in two steps. In the end, you will have built a multi-threaded Web server that is capable of processing multiple simultaneous

More information

Getting Started with the Internet Communications Engine

Getting Started with the Internet Communications Engine Getting Started with the Internet Communications Engine David Vriezen April 7, 2014 Contents 1 Introduction 2 2 About Ice 2 2.1 Proxies................................. 2 3 Setting Up ICE 2 4 Slices 2

More information

GSAC CONSIGNE DE NAVIGABILITE définie par la DIRECTION GENERALE DE L AVIATION CIVILE Les examens ou modifications décrits ci-dessous sont impératifs. La non application des exigences contenues dans cette

More information

When the transport layer tries to establish a connection with the server, it is blocked by the firewall. When this happens, the RMI transport layer

When the transport layer tries to establish a connection with the server, it is blocked by the firewall. When this happens, the RMI transport layer Firewall Issues Firewalls are inevitably encountered by any networked enterprise application that has to operate beyond the sheltering confines of an Intranet Typically, firewalls block all network traffic,

More information

How To Run A Test File Extension On A Rexx 4.1.1 (Unix) 4.2.1 On A Microsoft Linux 4.3.2 (Amd64) (Orchestra) (For Windows) (

How To Run A Test File Extension On A Rexx 4.1.1 (Unix) 4.2.1 On A Microsoft Linux 4.3.2 (Amd64) (Orchestra) (For Windows) ( Institut für Betriebswirtschaftslehre und Wirtschaftsinformatik Configuring Rexx Interpreter Instances from NetRexx/Java The 2012 International Rexx Symposium Rony G. Flatscher Wirtschaftsuniversität Wien

More information

13 File Output and Input

13 File Output and Input SCIENTIFIC PROGRAMMING -1 13 File Output and Input 13.1 Introduction To make programs really useful we have to be able to input and output data in large machinereadable amounts, in particular we have to

More information

First Java Programs. V. Paúl Pauca. CSC 111D Fall, 2015. Department of Computer Science Wake Forest University. Introduction to Computer Science

First Java Programs. V. Paúl Pauca. CSC 111D Fall, 2015. Department of Computer Science Wake Forest University. Introduction to Computer Science First Java Programs V. Paúl Pauca Department of Computer Science Wake Forest University CSC 111D Fall, 2015 Hello World revisited / 8/23/15 The f i r s t o b l i g a t o r y Java program @author Paul Pauca

More information

DHBW Karlsruhe, Vorlesung Programmieren, Remote Musterlösungen

DHBW Karlsruhe, Vorlesung Programmieren, Remote Musterlösungen DHBW Karlsruhe, Vorlesung Programmieren, Remote Musterlösungen Aufgabe 1 RMI - TimeService public interface TimeServerInterface extends Remote { public String gettime() throws RemoteException; import java.util.date;

More information

Chapter 6 Load Balancing

Chapter 6 Load Balancing Chapter 6 Load Balancing Part I. Preliminaries Part II. Tightly Coupled Multicore Chapter 2. Parallel Loops Chapter 3. Parallel Loop Schedules Chapter 4. Parallel Reduction Chapter 5. Reduction Variables

More information

Les Support Packs IA94 et IA9H

Les Support Packs IA94 et IA9H Guide MQ du 13 Novembre 2007 Journée «Support Packs» Les Support Packs IA94 et IA9H Edouard Orcel edouard.orcel@fr.ibm.com IBM France Plan Présentation XMS Serveurs compatibles : MQ, WMB, WAS, WPS ou WESB

More information

Aucune validation n a été faite sur l exemple.

Aucune validation n a été faite sur l exemple. Cet exemple illustre l utilisation du Type BLOB dans la BD. Aucune validation n a été faite sur l exemple. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data;

More information

Web Development in Java

Web Development in Java Web Development in Java Detailed Course Brochure @All Rights Reserved. Techcanvass, 265, Powai Plaza, Hiranandani Garden, Powai, Mumbai www.techcanvass.com Tel: +91 22 40155175 Mob: 773 877 3108 P a g

More information

Android and Cloud Computing

Android and Cloud Computing Android and Cloud Computing 1 Schedule Reminders on Android and Cloud GCM presentation GCM notions Build a GCM project Write a GCM client (receiver) Write a GCM server (transmitter) 2 Android : reminders?

More information

Advanced Network Programming Lab using Java. Angelos Stavrou

Advanced Network Programming Lab using Java. Angelos Stavrou Advanced Network Programming Lab using Java Angelos Stavrou Table of Contents A simple Java Client...3 A simple Java Server...4 An advanced Java Client...5 An advanced Java Server...8 A Multi-threaded

More information

Introduction au BIM. ESEB 38170 Seyssinet-Pariset Economie de la construction email : contact@eseb.fr

Introduction au BIM. ESEB 38170 Seyssinet-Pariset Economie de la construction email : contact@eseb.fr Quel est l objectif? 1 La France n est pas le seul pays impliqué 2 Une démarche obligatoire 3 Une organisation plus efficace 4 Le contexte 5 Risque d erreur INTERVENANTS : - Architecte - Économiste - Contrôleur

More information

"Templating as a Strategy for Translating Official Documents from Spanish to English"

Templating as a Strategy for Translating Official Documents from Spanish to English Article "Templating as a Strategy for Translating Official Documents from Spanish to English" Sylvie Lambert-Tierrafría Meta : journal des traducteurs / Meta: Translators' Journal, vol. 52, n 2, 2007,

More information

Java Programming Fundamentals

Java Programming Fundamentals Lecture 1 Part I Java Programming Fundamentals Topics in Quantitative Finance: Numerical Solutions of Partial Differential Equations Instructor: Iraj Kani Introduction to Java We start by making a few

More information

Web Service Caching Using Command Cache

Web Service Caching Using Command Cache Web Service Caching Using Command Cache Introduction Caching can be done at Server Side or Client Side. This article focuses on server side caching of web services using command cache. This article will

More information

Implementing a Web Service Client using Java

Implementing a Web Service Client using Java Implementing a Web Service Client using Java Requirements This guide is based on implementing a Java Client using JAX-WS that comes with Java Web Services Developer Pack version 2.0 (JWSDP). This can be

More information

B.Sc (Honours) - Software Development

B.Sc (Honours) - Software Development Galway-Mayo Institute of Technology B.Sc (Honours) - Software Development E-Commerce Development Technologies II Lab Session Using the Java URLConnection Class The purpose of this lab session is to: (i)

More information

CSE 308. Coding Conventions. Reference

CSE 308. Coding Conventions. Reference CSE 308 Coding Conventions Reference Java Coding Conventions googlestyleguide.googlecode.com/svn/trunk/javaguide.html Java Naming Conventions www.ibm.com/developerworks/library/ws-tipnamingconv.html 2

More information

Using ilove SharePoint Web Services Workflow Action

Using ilove SharePoint Web Services Workflow Action Using ilove SharePoint Web Services Workflow Action This guide describes the steps to create a workflow that will add some information to Contacts in CRM. As an example, we will use demonstration site

More information

CS 1302 Ch 19, Binary I/O

CS 1302 Ch 19, Binary I/O CS 1302 Ch 19, Binary I/O Sections Pages Review Questions Programming Exercises 19.1-19.4.1, 19.6-19.6 710-715, 724-729 Liang s Site any Sections 19.1 Introduction 1. An important part of programming is

More information

APPLICATION PROGRAMMING - MOBILE COMPUTING Mobile Computing

APPLICATION PROGRAMMING - MOBILE COMPUTING Mobile Computing ROZWÓJ POTENCJAŁU I OFERTY DYDAKTYCZNEJ POLITECHNIKI WROCŁAWSKIEJ Wrocław University of Technology Internet Engineering Marek Piasecki APPLICATION PROGRAMMING - MOBILE COMPUTING Mobile Computing Wrocław

More information

MSDG Services Integration Document Draft Ver 1.2

MSDG Services Integration Document Draft Ver 1.2 Table of contents Page 1 of 17 Table of Contents 2 Push SMS Integration 1. 1.1 Overview HTTP API lets departments send across SMS messages using HTTP URL interface. The API supports SMS push (Single SMS

More information

WebSphere and Message Driven Beans

WebSphere and Message Driven Beans WebSphere and Message Driven Beans 1 Messaging Messaging is a method of communication between software components or among applications. A messaging system is a peer-to-peer facility: A messaging client

More information

Copyright. Restricted Rights Legend. Trademarks or Service Marks. Copyright 2003 BEA Systems, Inc. All Rights Reserved.

Copyright. Restricted Rights Legend. Trademarks or Service Marks. Copyright 2003 BEA Systems, Inc. All Rights Reserved. Version 8.1 SP4 December 2004 Copyright Copyright 2003 BEA Systems, Inc. All Rights Reserved. Restricted Rights Legend This software and documentation is subject to and made available only pursuant to

More information

Network/Socket Programming in Java. Rajkumar Buyya

Network/Socket Programming in Java. Rajkumar Buyya Network/Socket Programming in Java Rajkumar Buyya Elements of C-S Computing a client, a server, and network Client Request Result Network Server Client machine Server machine java.net Used to manage: URL

More information

Java Applet and Terminal Application for Financial transactions

Java Applet and Terminal Application for Financial transactions Java Applet and Terminal Application for Financial transactions Security for Java and E-commerce Environment Behrooz Aghakhanian baf@kth.se Jalil Shokouh shokouh@kth.se May 2011 Introduction In this assignment

More information

An Overview of Java. overview-1

An Overview of Java. overview-1 An Overview of Java overview-1 Contents What is Java Major Java features Java virtual machine Java programming language Java class libraries (API) GUI Support in Java Networking and Threads in Java overview-2

More information

Operation Instructions PowerCool Series

Operation Instructions PowerCool Series Operation Instructions PowerCool Series TOP VIEW BOTTOM VIEW PDCOOL-05RA PDCOOL-00RK PDCOOL-5R PDCOOL-0R ALSO AVAILABLE Thank you for purchasing the PowerCool Series component cooler and power distribution.

More information

Background Tasks and Blackboard Building Blocks TM. Two great tastes that taste great together

Background Tasks and Blackboard Building Blocks TM. Two great tastes that taste great together Background Tasks and Blackboard Building Blocks TM Two great tastes that taste great together Why? Recurring tasks? Processing-intensive tasks? Secret, shameful tasks! Considerations Basic Java Thread

More information

Network Communication

Network Communication Network Communication Outline Sockets Datagrams TCP/IP Client-Server model OSI Model Sockets Endpoint for bidirectional communication between two machines. To connect with each other, each of the client

More information

Archived Content. Contenu archivé

Archived Content. Contenu archivé ARCHIVED - Archiving Content ARCHIVÉE - Contenu archivé Archived Content Contenu archivé Information identified as archived is provided for reference, research or recordkeeping purposes. It is not subject

More information

"Simultaneous Consecutive Interpreting: A New Technique Put to the Test"

Simultaneous Consecutive Interpreting: A New Technique Put to the Test Article "Simultaneous Consecutive Interpreting: A New Technique Put to the Test" Miriam Hamidi et Franz Pöchhacker Meta : journal des traducteurs / Meta: Translators' Journal, vol. 52, n 2, 2007, p. 276-289.

More information

Using mobile phones to access Web Services in a secure way. Dan Marinescu

Using mobile phones to access Web Services in a secure way. Dan Marinescu Using mobile phones to access Web Services in a secure way Dan Marinescu March 7, 2007 Abstract Web Services is a technology that has gained in acceptance and popularity over the past years. The promise

More information

Mail User Agent Project

Mail User Agent Project Mail User Agent Project Tom Kelliher, CS 325 100 points, due May 4, 2011 Introduction (From Kurose & Ross, 4th ed.) In this project you will implement a mail user agent (MUA) that sends mail to other users.

More information