|
Java Card v2.2.1 |
||||||||||
PREV NEXT | FRAMES NO FRAMES |
See:
Description
Core Packages | |
java.io | A subset of the java.io package in the standard Java programming language. |
java.lang | Provides classes that are fundamental to the design of the Java Card technology subset of the Java programming language. |
java.rmi | The java.rmi package defines the Remote interface which identifies interfaces whose methods can be invoked from card acceptance device (CAD) client applications. |
javacard.framework | Provides a framework of classes and interfaces for building, communicating with and working with Java Card technology-based applets. |
javacard.framework.service | 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. |
javacard.security | Provides classes and interfaces that contain publicly-available functionality for implementing a security and cryptography framework on the Java Card platform. |
Standard Extensions | |
javacardx.crypto | Extension package that contains functionality, which may be subject to export controls, for implementing a security and cryptography framework on the Java Card platform. |
This document is the specification for the Java Card 2.2.1 Application Programming Interface.
All Java Card API implementations must conform to the Java model of parameter checking. That is, the API code should not check for those parameter errors which the VM is expected to detect. These include all parameter errors, such as null pointers, index out of bounds, and so forth, that result in standard runtime exceptions. The runtime exceptions that are thrown by the Java Card VM are:
In some cases, it may be necessary to explicitly check parameters. These exceptions to the policy are documented in the Java Card API specification. A Java Card API implementation must not perform parameter checking with the intent to avoid runtime exceptions, unless this is clearly specified by the Java Card API specification.
NoteIf multiple erroneous input parameters exist, any one of several runtime exceptions will be thrown by the VM. Java programmers rely on this behavior, but they do not rely on getting a specific exception. It is not necessary (nor is it reasonable or practical) to document the precise error handling for all possible combinations of equivalence classes of erroneous inputs. The value of this behavior is that the logic error in the calling program is detected and exposed via the runtime exception mechanism, rather than being masked by a normal return.
|
Java Card v2.2.1 |
||||||||||
PREV NEXT | FRAMES NO FRAMES |