Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.
/ spray-example Public archive

This is a simple example of how to use the Fidesmo API with using spray

Notifications You must be signed in to change notification settings

fidesmo/spray-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spray-example

This is a simple example of how to use the Fidesmo API with spray. It implements the following services:

  • transceive - Simple service that sends some APDUs to the card
  • mifare - A more complex service that initializes, reads and writes to a virtual MIFARE card
  • mifare-pay - Same as above but with payment
  • install - Installs a Java Card app using the CCM api
  • fail - A service that does nothing but fail
  • fail-pay - Same as above but with payment

The service delivery logic is implemented by a separate "DeliveryActor" for each type of service.

Test server

Service provider e26b8f12 is running this service for testing purposes. Beware that it's running on free Heroku instance so it might be quite slow due to spinning down! To test this running service from an Android application call the Fidesmo App using the following code:

Intent intent = new Intent();
intent.setAction("com.fidesmo.sec.DELIVER_SERVICE");
intent.setData(Uri.parse("https://api.fidesmo.com/service/e26b8f12/transceive"));
startActivity(intent);

The URI encodes the service provider e26b8f12 and the service ID transceive - this example SP implements all the services listed above for easy testing.

About

This is a simple example of how to use the Fidesmo API with using spray

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages