Package javacard.framework.service

This optional extension package provides a service framework of classes and interfaces that allow a Java Card technology-based applet to be designed as an aggregation of service components.

See: Description

Package javacard.framework.service Description

This optional extension package provides a service framework of classes and interfaces that allow a Java Card technology-based applet to be designed as an aggregation of service components. Implementation of this package requires that java.rmi optional package MUST also be implemented.

The package contains an aggregator class called Dispatcher which includes methods to add services to its registry, dispatch APDU commands to registered services, and remove services from its registry.

The package also contains the Service interface which contains methods to process APDU commands, and allow the dispatcher to be aware of multiple services. Subinterfaces allow an implementation services with added functionality:

The class BasicService provides the basic functionality of a service, and all services are built as subclasses of this class. BasicService provides a default implementation for the methods defined in the Service interface, and defines a set of helper methods that allow the APDU buffer to enable cooperation among different services.

RMI Classes for the Java Card Platform

The CardRemoteObject and RMIService classes allow a Java programming language program running on a virtual machine on the client platform to invoke methods on remote objects in a Java Card technology-based applet. These classes contain the minimum required functionality to implement Remote Method Invocation for the Java Card platform (RMI for the Java Card  platform).

 

Copyright © 1998, 2015, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms