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. 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:
RemoteService
-use this subinterface to define services that allow remote processes to access the services present on a card that supports the Java Card platform.SecurityService
-use this subinterface to define services that provide methods to query the current security status.
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).
-
Interface Summary Interface Description RemoteService This interface defines the generic API for remote object access services, which allow remote processes to access the services present on a Java Card technology-enabled smart card.SecurityService This interface describes the functions of a generic security service.Service This is the base interface for the service framework on the Java Card platform. -
Class Summary Class Description BasicService This class should be used as the base class for implementing services.CardRemoteObject A convenient base class for remote objects for the Java Card platform.Dispatcher ADispatcher
is used to build an application by aggregating several services.RMIService An implementation of a service that is used to process Java Card platform RMI requests for remotely accessible objects. -
Exception Summary Exception Description ServiceException ServiceException
represents a service framework-related exception.