rmi client application programming interface · 2 rmi client application programming interface,...

207
Sun Microsystems, Inc. www.sun.com RMI Client Application Programming Interface Java Card™ Platform, Version 2.2.2 3-31-06

Upload: others

Post on 31-May-2020

31 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Sun Microsystems, Inc.www.sun.com

RMI Client ApplicationProgramming Interface

Java Card™ Platform, Version 2.2.2

3-31-06

Page 2: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Copyright © 2006 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, California 95054, U.S.A. All rights reserved.

Sun Microsystems, Inc. has intellectual property rights relating to technology embodied in the product that is described in this document. In particular, and without limitation, these intellectual property rights may include one or more of the U.S. patents listed at http://www.sun.com/patents and one or more additional patents or pending patent applications in the U.S. and in other countries.

Use is subject to license terms.

Sun, Sun Microsystems, the Sun logo, Java, and Java Card are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.

UNIX is a registered trademark in the U.S. and other countries, exclusively licensed through X/Open Company, Ltd.

Products covered by and information contained in this service manual are controlled by U.S. Export Control laws and may be subject to the export or import laws in other countries. Nuclear, missile, chemical biological weapons or nuclear maritime end uses or end users, whether direct or indirect, are strictly prohibited. Export or reexport to countries subject to U.S. embargo or to entities identified on U.S. export exclusion lists, including, but not limited to, the denied persons and specially designated nationals lists is strictly prohibited.

DOCUMENTATION IS PROVIDED "AS IS" AND ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TO BE LEGALLY INVALID.

Copyright © 2006 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, California 95054, Etats-Unis. Tous droits réservés.

Sun Microsystems, Inc. détient les droits de propriété intellectuels relatifs à la technologie incorporée dans le produit qui est décrit dans ce document. En particulier, et ce sans limitation, ces droits de propriété intellectuelle peuvent inclure un ou plus des brevets américains listés à l'adresse http://www.sun.com/patents et un ou les brevets supplémentaires ou les applications de brevet en attente aux Etats - Unis et dans les autres pays.

L'utilisation est soumise aux termes de la Licence.

Sun, Sun Microsystems, le logo Sun, Java, et Java Card sont des marques de fabrique ou des marques déposées de Sun Microsystems, Inc. aux Etats-Unis et dans d'autres pays.

UNIX est une marque déposée aux Etats-Unis et dans d'autres pays et licenciée exlusivement par X/Open Company, Ltd.

Ce produit est soumis à la législation américaine en matière de contrôle des exportations et peut être soumis à la règlementation en vigueur dans d'autres pays dans le domaine des exportations et importations. Les utilisations, ou utilisateurs finaux, pour des armes nucléaires, des missiles, des armes biologiques et chimiques ou du nucléaire maritime, directement ou indirectement, sont strictement interdites. Les exportations ou reexportations vers les pays sous embargo américain, ou vers des entités figurant sur les listes d'exclusion d'exportation américaines, y compris, mais de manière non exhaustive, la liste de personnes qui font objet d'un ordre de ne pas participer, d'une façon directe ou indirecte, aux exportations des produits ou des services qui sont régis par la législation américaine en matière de contrôle des exportations et la liste de ressortissants spécifiquement désignés, sont rigoureusement interdites.

LA DOCUMENTATION EST FOURNIE "EN L'ETAT" ET TOUTES AUTRES CONDITIONS, DECLARATIONS ET GARANTIES EXPRESSES OU TACITES SONT FORMELLEMENT EXCLUES, DANS LA MESURE AUTORISEE PAR LA LOI APPLICABLE, Y COMPRIS NOTAMMENT TOUTE GARANTIE IMPLICITE RELATIVE A LA QUALITE MARCHANDE, A L'APTITUDE A UNE UTILISATION PARTICULIERE OU A L'ABSENCE DE CONTREFACON.

Page 3: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Contents

1. Client-Side API for RMI on the Java Card Platform 1

Basic Features 1

Client Application Interfaces 2

CardAccessor Interface 2

JCRMIConnect Class 2

ApduIOCardAccessor Class 3

Format of the jcclient.properties File 3

Securing the Transport Layer 4

Stub/Proxy Generation 4

Exceptions 5

2. API Documentation 7

iii

Page 4: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

iv RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006

Page 5: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

CHAPTER 1

Client-Side API for RMI on the Java Card Platform

A Java Card™ remote method invocation (Java Card RMI) client application runs on a Card Acceptance Device (CAD) terminal that supports a Java™ Platform, Standard Edition (Java SE) or Java™ Platform, Micro Edition (Java ME). The client application requires a portable and platform independent mechanism to access the Java Card RMI server applet executing on the smart card.

This client-side architecture currently focuses on a Java SE client running on a JDK™ version 1.2 or higher environment. The client interfaces are designed to be independent of the card access framework. The interfaces therefore only provide Java Card RMI-specific access mechanisms and allow the client application to use its preferred card access mechanisms for its basic card interaction needs.

The example in Sun Microsystem’s reference implementation uses the APDU I/O library for card access. See the Development Kit User’s Guide, Java Card Platform, Version 2.2.2 provided with this release.

The Java ME environment is more limited, and since most Java ME profiles do not support the Java Card RMI machinery at this time, it is not discussed in detail. The design of the Java Card RMI client-side architecture ensures that it does not preclude the Java ME client.

Basic FeaturesThe Java Card RMI client side architecture caters to the following:

■ Provides the client application mechanisms to initialize and initiate an RMI session with a Java Card applet.

■ Provides the client application access to the initial remote reference.

1

Page 6: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

■ Allows the client application to customize the message packet during communication with a Java Card technology-compliant smart card to introduce transport level security.

■ Allows the CAD terminal developer to customize the card access mechanisms for the specifics of the communications hardware.

■ Allows the CAD terminal developer to customize the stub generation mechanism for one that is best suited to the platform capabilities.

Client Application InterfacesThese classes provide the basic Java Card RMI client application with the front-end mechanisms to connect to the Java Card applet and obtain an initial reference to invoke remote methods.

CardAccessor InterfaceThe CardAccessor interface is used by the Java Card RMI client framework to communicate with the card. It defines the following methods:

■ public byte[] exchangeAPDU( byte[] command )

The Java Card RMI client framework uses this method to send a command APDU to the card and receive the response APDU.

■ public void closeCard()

This method closes connection with the card and powers down the card.

In the Java Card RMI example provided in this release (see Chapter 3 of the Development Kit User’s Guide, Java Card Platform, Version 2.2.2), the client application instantiates the ApduIOCardAccessor, which implements the CardAccessor interface.

JCRMIConnect ClassThe client application uses the JCRMIConnect class to initiate the Java Card RMI session and obtain the initial remote reference from the card.

Constructor:

public JCRMIConnect(CardAccessor cA)

2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006

Page 7: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

The client constructs an instance of the JCRMIConnect class, initializing it with a CardAccessor object.

The methods of JCRMIConnect are:

■ public byte[] selectApplet(byte[] appletAID, byte format)

The client starts a Java Card RMI session with the Java Card applet on the card using this method. The second parameter specifies the format of the remote references and can be either of two constants defined in this class: REF_WITH_CLASS_NAME or REF_WITH_INTERFACE_NAMES.

■ public Remote getInitialReference()

To begin a Java Card RMI-based dialog, the client obtains the first remote object reference via this method and then casts it to the appropriate remote interface type.

ApduIOCardAccessor ClassThis class implements a CardAccessor object using the ApduIO library. It has a default constructor, which takes initialization parameters from the file jcclient.properties, which must be located in one of the directories listed in the CLASSPATH.

Format of the jcclient.properties FileThe jcclient.properties file contains a set of parameters for the ApduIOCardAccessor. Each line of the file is in the format parameter=value. Comments are preceded with the # symbol. All parameter names and values are case-sensitive.

The parameter connection is mandatory, with possible values of TCP, SERIAL, PCSC, for example:

connection = TCP

If the connection is TCP or SERIAL, the parameter protocol is required, with possible values of T0 and T1, for example:

protocol = T1

If the connection is TCP, the parameters TCP_HOST and TCP_PORT are required, for example:

TCP_HOST = localhost

TCP_PORT = 9025

If the connection is SERIAL, the parameter SERIAL_PORT is required, for example:

Chapter 1 Client-Side API for RMI on the Java Card Platform 3

Page 8: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

SERIAL_PORT = COM1

Note: If parameter connection is set to PCSC, no other parameters are necessary. The ApduIOCardAccessor will attempt to use default sections of the card reader's driver.

Securing the Transport LayerA simple Java Card RMI client application would only depend on the above methods for a remote method based card session with a Java Card applet. The Java Card applet might need to layer additional security services to protect the message transport data for integrity and privacy. In order to do this, the client application (or security service provider) could develop its own version of the CardAccessor class with the exchangeAPDU method performing data transformation. The Java Card RMI example provided in this release contains the CustomCardAccessor class, which shows how to perform such a task within its exchangeAPDU method.

Stub/Proxy GenerationThe client does not usually interact with the client side stub generation classes. It is used by the JCRMIConnect class to instantiate the initial remote stub object and subsequently the stub objects themselves to instantiate other remote stub objects.

The client library includes the class JCCardObjectFactory that encapsulates the mechanism used to instantiate stubs on the client. The JCCardObjectFactory class uses the SELECT REF_FORMAT_CLASS format, locates the pre-compiled stub class corresponding to the implementation class name returned in the remote reference descriptor from the card, and then instantiates it.

The client library also includes the class JCCardProxyFactory, which uses the SELECT REF_FORMAT_INTERFACES format. The dynamic proxy generation mechanism, defined by JDK version 1.3, generates the proxy instances according to the list of remote interfaces implemented by the remote class.

4 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006

Page 9: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

ExceptionsThe remote method invoked on the card may throw an exception to signal that an unexpected condition has been detected. The RMIService class on the card catches the exception and returns this information to the client.

If the exception thrown on the card is an exception defined in the Java Card API version 2.2.2, the same exception is re-thrown by the stub object back to the client application. The client can access the reason code associated with Java Card platform-specific exceptions using the standard getReason() method.

If the exception thrown on the card is a subclass of an exception defined in the Java Card API version 2.2.2, a client subclass of the closest exception defined in the API (along with the reason code, if applicable) is re-thrown to the client by the stub object. The exception object will contain the following error message string: “A subclass was thrown on the card.”

Apart from the exceptions thrown by the remote method itself, errors during communication, marshalling, protocol, unmarshalling, stub generation and so forth related to the Java Card RMI method invocation results in a RemoteException exception being thrown to the client application with appropriate error message strings which include the following:

■ Applet selection failed, SW = ...■ Incorrect (too short) response received from the card■ Invalid format requested by the factory■ Invoke operation failed, SW = ...■ Method not found■ Object not exported■ Out of param resources■ Out of response resources■ Protocol error reported by the card■ Signature mismatch■ Thrown on the card■ Unexpected exception received while instantiating the stub■ Unsupported APPLICATION tag■ Unsupported error type received from the card■ Unsupported exception type received from the card■ Unsupported FCI tag■ Unsupported Java Card RMI tag■ Unsupported Java Card RMI version■ Unsupported subclass exception type received from the card■ Unsupported tag

Chapter 1 Client-Side API for RMI on the Java Card Platform 5

Page 10: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

6 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006

Page 11: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

CHAPTER 2

API Documentation

A typical Java Card RMI client application would commonly use the following classes from the client-side API. See the RMI-based demos included with the Java Card platform, version 2.2.2 development kit for examples of usage of these classes.

■ package com.sun.javacard.clientlib

■ CardAccessor - as an interface, which must be implemented by any custom card accessor.

■ ApduIOCardAccessor - as a base class or as a source code to implement a custom card accessor.

■ package com.sun.javacard.rmiclientlib

■ JCRMIConnect - to select a card applet and to obtain an initial reference.

The remainder of this whitepaper contains a compilation of the API documentation generated by the Javadoc tool for the client-side Java Card RMI application programming interface packages. It includes the classes and interfaces mentioned above, as well as classes that represent various exceptions that may be thrown on the card and re-thrown on the client. Please note the "FRAMES" feature is not supported inthis version.

7

Page 12: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

8 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006

Page 13: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

All Classes

Packages com.sun.javacard.clientlib com.sun.javacard.javax.smartcard.rmiclient com.sun.javacard.rmiclientlib javacard.framework javacard.framework.service javacard.security javacardx.biometry javacardx.external javacardx.framework.tlv javacardx.framework.util

All Classes APDUException APDUExceptionSubclass ApduIOCardAccessor BioException BioExceptionSubclass CardAccessor CardException CardExceptionSubclass CardObjectFactory CardRuntimeException CardRuntimeExceptionSubclass CryptoException CryptoExceptionSubclass ExternalException ExternalExceptionSubclass ISOException ISOExceptionSubclass JCCardObjectFactory JCCardProxyFactory JCRemoteRefImpl JCRMIConnect PINException PINExceptionSubclass ServiceException ServiceExceptionSubclass SystemException SystemExceptionSubclass TLVException TLVExceptionSubclass TransactionException TransactionExceptionSubclass UserException UserExceptionSubclass UtilException UtilExceptionSubclass

Overview Package Class Tree Deprecated Index Help

PREV NEXT FRAMES NO FRAMES

Packagescom.sun.javacard.clientlib

Provides a framework for building client applications capable of exchanging APDUs with Java Cards.

com.sun.javacard.javax.smartcard.rmiclient

Provides framework of classes and interfaces for a Java Card technology-based client.

com.sun.javacard.rmiclientlib

Provides a framework of classes and interfaces for building Java Card RMI-based client applications.

javacard.framework

Provides Java Card API exceptions that may be re-thrown on the client.

javacard.framework.service

Provides Java Card API exceptions that may be re-thrown on the client.

javacard.security

Provides Java Card API exceptions that may be re-thrown on the client.

javacardx.biometry

Provides Java Card API exceptions that may be re-thrown on the client.

javacardx.external

Provides Java Card API exceptions that may be re-thrown on the client.

javacardx.framework.tlv

Provides Java Card API exceptions that may be re-thrown on the client.

javacardx.framework.util

Provides Java Card API exceptions that may be re-thrown on the client.

Overview Package Class Tree Deprecated Index Help

PREV NEXT FRAMES NO FRAMES

Page 14: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize
Page 15: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

All Classes APDUException APDUExceptionSubclass ApduIOCardAccessor BioException BioExceptionSubclass CardAccessor CardException CardExceptionSubclass CardObjectFactory CardRuntimeException CardRuntimeExceptionSubclass CryptoException CryptoExceptionSubclass ExternalException ExternalExceptionSubclass ISOException ISOExceptionSubclass JCCardObjectFactory JCCardProxyFactory JCRemoteRefImpl JCRMIConnect PINException PINExceptionSubclass ServiceException ServiceExceptionSubclass SystemException SystemExceptionSubclass TLVException TLVExceptionSubclass TransactionException TransactionExceptionSubclass UserException UserExceptionSubclass UtilException UtilExceptionSubclass

Page 16: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

javacard.framework Class APDUException

java.lang.Object

java.lang.Throwable

java.lang.Exception

java.lang.RuntimeException

javacard.framework.CardRuntimeException

javacard.framework.APDUException

All Implemented Interfaces:

Direct Known Subclasses: APDUExceptionSubclass

public class APDUException

extends CardRuntimeException

APDUException represents an APDU related exception.

See Also:

Field Summarystatic short BAD_LENGTH

This reason code is used by the APDU.setOutgoingLength() method to indicate that the length parameter is greater that 256 or if non BLOCK CHAINED data transfer is requested and len is greater than (IFSD-2), where IFSD is the Outgoing Block Size.

Page 17: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

static short BUFFER_BOUNDS This reason code is used by the APDU.sendBytes() method to indicate that the sum of buffer offset parameter and the byte length parameter exceeds the APDU buffer size.

static short ILLEGAL_USE This APDUException reason code indicates that the method should not be invoked based on the current state of the APDU.

static short IO_ERROR This reason code indicates that an unrecoverable error occurred in the I/O transmission layer.

static short NO_T0_GETRESPONSE This reason code indicates that during T=0 protocol, the CAD did not return a GET RESPONSE command in response to a <61xx> response status to send additional data.

static short NO_T0_REISSUE This reason code indicates that during T=0 protocol, the CAD did not reissue the same APDU command with the corrected length in response to a <6Cxx> response status to request command reissue with the specified length.

static short T1_IFD_ABORT This reason code indicates that during T=1 protocol, the CAD returned an ABORT S-Block command and aborted the data transfer.

Constructor SummaryAPDUException(short reason) Constructs an APDUException.

Method Summarystatic void throwIt(short reason)

Throws an instance of APDUException with the specified reason.

Methods inherited from class javacard.framework.CardRuntimeException

getReason, setReason

Methods inherited from class java.lang.Throwable

Page 18: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail

ILLEGAL_USE

public static final short ILLEGAL_USE

This APDUException reason code indicates that the method should not be invoked based on the current state of the APDU.

See Also:Constant Field Values

BUFFER_BOUNDS

public static final short BUFFER_BOUNDS

This reason code is used by the APDU.sendBytes() method to indicate that the sum of buffer offset parameter and the byte length parameter exceeds the APDU buffer size.

See Also:Constant Field Values

BAD_LENGTH

public static final short BAD_LENGTH

Page 19: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

This reason code is used by the APDU.setOutgoingLength() method to indicate that the length parameter is greater that 256 or if non BLOCK CHAINED data transfer is requested and len is greater than (IFSD-2), where IFSD is the Outgoing Block Size.

See Also:Constant Field Values

IO_ERROR

public static final short IO_ERROR

This reason code indicates that an unrecoverable error occurred in the I/O transmission layer.

See Also:Constant Field Values

NO_T0_GETRESPONSE

public static final short NO_T0_GETRESPONSE

This reason code indicates that during T=0 protocol, the CAD did not return a GET RESPONSE command in response to a <61xx> response status to send additional data. The outgoing transfer has been aborted. No more data or status can be sent to the CAD in this APDU.process() method.

See Also:Constant Field Values

T1_IFD_ABORT

public static final short T1_IFD_ABORT

This reason code indicates that during T=1 protocol, the CAD returned an ABORT S-Block

Page 20: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

command and aborted the data transfer. The incoming or outgoing transfer has been aborted. No more data can be received from the CAD. No more data or status can be sent to the CAD in this APDU.process() method.

See Also:Constant Field Values

NO_T0_REISSUE

public static final short NO_T0_REISSUE

This reason code indicates that during T=0 protocol, the CAD did not reissue the same APDU command with the corrected length in response to a <6Cxx> response status to request command reissue with the specified length. The outgoing transfer has been aborted. No more data or status can be sent to the CAD in this APDU.process() method.

See Also:Constant Field Values

Constructor Detail

APDUException

public APDUException(short reason)

Constructs an APDUException.

Parameters:reason - the reason for the exception.

Method Detail

throwIt

public static void throwIt(short reason)

Page 21: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Throws an instance of APDUException with the specified reason.

Parameters:reason - the reason for the exception.

Throws: APDUException - always.

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Page 22: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV NEXT FRAMES NO FRAMES All Classes

Packagescom.sun.javacard.clientlib

Provides a framework for building client applications capable of exchanging APDUs with Java Cards.

com.sun.javacard.javax.smartcard.rmiclient

Provides framework of classes and interfaces for a Java Card technology-based client.

com.sun.javacard.rmiclientlib

Provides a framework of classes and interfaces for building Java Card RMI-based client applications.

javacard.framework

Provides Java Card API exceptions that may be re-thrown on the client.

javacard.framework.service

Provides Java Card API exceptions that may be re-thrown on the client.

javacard.security Provides Java Card platform exceptions that may be re-thrown on the client.

javacardx.biometry

Extension package that contains functionality for implementing a biometric framework on the Java Card platform.

javacardx.external

Extension package that provides mechanisms to access memory subsystems which are not directly addressable by the Java Card runtime environment(Java Card RE) on the Java Card platform.

javacardx.framework.tlv

Extension package that contains functionality, for managing storage for BER TLV formatted data, based on the ASN.1 BER encoding rules of ISO/IEC 8825-1:2002, as well as parsing and editing BER TLV formatted data in I/O buffers.

javacardx.framework.util

Extension package that contains common utility functions for manipulating arrays of primitive components - byte, short or int.

Page 23: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV NEXT FRAMES NO FRAMES All Classes

Page 24: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV NEXT FRAMES NO FRAMES All Classes

Hierarchy For All Packages

Package Hierarchies:com.sun.javacard.clientlib, com.sun.javacard.javax.smartcard.rmiclient, com.sun.javacard.rmiclientlib, javacard.framework, javacard.framework.service, javacard.security, javacardx.biometry, javacardx.external, javacardx.framework.tlv, javacardx.framework.util

Class Hierarchy

java.lang.Object com.sun.javacard.clientlib.ApduIOCardAccessor (implements com.sun.javacard.

clientlib.CardAccessor) com.sun.javacard.javax.smartcard.rmiclient.CardObjectFactory

com.sun.javacard.rmiclientlib.JCCardObjectFactory com.sun.javacard.rmiclientlib.JCCardProxyFactory

com.sun.javacard.rmiclientlib.JCRemoteRefImpl (implements java.lang.reflect.InvocationHandler, java.rmi.server.RemoteRef)

com.sun.javacard.rmiclientlib.JCRMIConnect java.lang.Throwable

java.lang.Exception javacard.framework.CardException

com.sun.javacard.javax.smartcard.rmiclient.CardExceptionSubclass

javacard.framework.UserException com.sun.javacard.javax.smartcard.rmiclient.

UserExceptionSubclass java.lang.RuntimeException

javacard.framework.CardRuntimeException javacard.framework.APDUException

com.sun.javacard.javax.smartcard.rmiclient.APDUExceptionSubclass

javacardx.biometry.BioException com.sun.javacard.javax.smartcard.rmiclient.

Page 25: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

BioExceptionSubclass com.sun.javacard.javax.smartcard.rmiclient.

CardRuntimeExceptionSubclass javacard.security.CryptoException

com.sun.javacard.javax.smartcard.rmiclient.CryptoExceptionSubclass

javacardx.external.ExternalException com.sun.javacard.javax.smartcard.rmiclient.

ExternalExceptionSubclass javacard.framework.ISOException

com.sun.javacard.javax.smartcard.rmiclient.ISOExceptionSubclass

javacard.framework.PINException com.sun.javacard.javax.smartcard.rmiclient.

PINExceptionSubclass javacard.framework.service.ServiceException

com.sun.javacard.javax.smartcard.rmiclient.ServiceExceptionSubclass

javacard.framework.SystemException com.sun.javacard.javax.smartcard.rmiclient.

SystemExceptionSubclass javacardx.framework.tlv.TLVException

com.sun.javacard.javax.smartcard.rmiclient.TLVExceptionSubclass

javacard.framework.TransactionException com.sun.javacard.javax.smartcard.rmiclient.

TransactionExceptionSubclass javacardx.framework.util.UtilException

com.sun.javacard.javax.smartcard.rmiclient.UtilExceptionSubclass

Interface Hierarchy

com.sun.javacard.clientlib.CardAccessor

Overview Package Class Tree Deprecated Index Help

PREV NEXT FRAMES NO FRAMES All Classes

Page 26: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV NEXT FRAMES NO FRAMES All Classes

Deprecated API

Contents

Deprecated Methods

Deprecated Methodscom.sun.javacard.rmiclientlib.JCRemoteRefImpl.done(RemoteCall)

com.sun.javacard.rmiclientlib.JCRemoteRefImpl.invoke(RemoteCall)

com.sun.javacard.rmiclientlib.JCRemoteRefImpl.newCall(RemoteObject, Operation[], int, long)

Overview Package Class Tree Deprecated Index Help

PREV NEXT FRAMES NO FRAMES All Classes

Page 27: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV NEXT FRAMES NO FRAMES All Classes

A B C D E F G I J M N P R S T U W

A

APDUException - Exception in javacard.frameworkAPDUException represents an APDU related exception.

APDUException(short) - Constructor for exception javacard.framework.APDUException Constructs an APDUException.

APDUExceptionSubclass - Exception in com.sun.javacard.javax.smartcard.rmiclientThis exception class represents a card subclass of APDUException.

APDUExceptionSubclass(String, short) - Constructor for exception com.sun.javacard.javax.smartcard.rmiclient.APDUExceptionSubclass

Constructs an APDUExceptionSubclass with the specified reason and specified error message. ApduIOCardAccessor - Class in com.sun.javacard.clientlib

Implementation of CardAccessor using ApduIO libraryApduIOCardAccessor() - Constructor for class com.sun.javacard.clientlib.ApduIOCardAccessor

Creates a new instance of ApduIOCardAccessor

B

BAD_LENGTH - Static variable in exception javacard.framework.APDUException This reason code is used by the APDU.setOutgoingLength() method to indicate that the length parameter is greater that 256 or if non BLOCK CHAINED data transfer is requested and len is greater than (IFSD-2), where IFSD is the Outgoing Block Size.

BioException - Exception in javacardx.biometryThe BioException class encapsulates specific exceptions which can be thrown by the methods of the javacardx.biometry package in case of error.

BioException(short) - Constructor for exception javacardx.biometry.BioException Construct a new biometric exception using a provided reason code.

BioExceptionSubclass - Exception in com.sun.javacard.javax.smartcard.rmiclientThe BioException class encapsulates specific exceptions which can be thrown by the methods of the javacardx.biometry package in case of error.

BioExceptionSubclass(String, short) - Constructor for exception com.sun.javacard.javax.smartcard.rmiclient.BioExceptionSubclass

Page 28: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

BUFFER_BOUNDS - Static variable in exception javacard.framework.APDUException

This reason code is used by the APDU.sendBytes() method to indicate that the sum of buffer offset parameter and the byte length parameter exceeds the APDU buffer size.

BUFFER_FULL - Static variable in exception javacard.framework.TransactionException This reason code is used during a transaction to indicate that the commit buffer is full.

C

cad - Variable in class com.sun.javacard.clientlib.ApduIOCardAccessor Reference to underlying ApduIO object.

CANNOT_ACCESS_IN_COMMAND - Static variable in exception javacard.framework.service.ServiceException

This reason code is used to indicate that the command in the APDU object cannot be accessed for input processing.

CANNOT_ACCESS_OUT_COMMAND - Static variable in exception javacard.framework.service.ServiceException

This reason code is used to indicate that the command in the APDU object cannot be accessed for output processing.

CardAccessor - Interface in com.sun.javacard.clientlibThe CardAccessor interface represents a generic smartcard communication API.

CardException - Exception in javacard.frameworkThe CardException class defines a field reason and two accessor methods getReason() and setReason().

CardException(short) - Constructor for exception javacard.framework.CardException Construct a CardException instance with the specified reason.

CardExceptionSubclass - Exception in com.sun.javacard.javax.smartcard.rmiclientThis exception class represents a subclass of CardException on the card.

CardExceptionSubclass(String, short) - Constructor for exception com.sun.javacard.javax.smartcard.rmiclient.CardExceptionSubclass

Construct a CardExceptionSubclass instance with the specified reason and the specified error message.

CardObjectFactory - Class in com.sun.javacard.javax.smartcard.rmiclientThis CardObjectFactory abstract class represents the base class for Java Card RMI version 2.2.2 stub generation implementations.

CardObjectFactory() - Constructor for class com.sun.javacard.javax.smartcard.rmiclient.CardObjectFactory

Creates a new CardObjectFactory for this RMI session

Page 29: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

CardRuntimeException - Exception in javacard.frameworkThe CardRuntimeException class defines a field reason and two accessor methods getReason() and setReason().

CardRuntimeException(short) - Constructor for exception javacard.framework.CardRuntimeException

Construct a CardRuntimeException instance with the specified reason. CardRuntimeExceptionSubclass - Exception in com.sun.javacard.javax.smartcard.rmiclient

This exception class represents a subclass of CardRuntimeException on the card.CardRuntimeExceptionSubclass(String, short) - Constructor for exception com.sun.javacard.javax.smartcard.rmiclient.CardRuntimeExceptionSubclass

Construct a CardRuntimeExceptionSubclass instance with the specified reason and the specified error message.

closeCard() - Method in class com.sun.javacard.clientlib.ApduIOCardAccessor Close and powerdown the card.

closeCard() - Method in interface com.sun.javacard.clientlib.CardAccessor This method closes and resets the card

com.sun.javacard.clientlib - package com.sun.javacard.clientlibProvides a framework for building client applications capable of exchanging APDUs with Java Cards.

com.sun.javacard.javax.smartcard.rmiclient - package com.sun.javacard.javax.smartcard.rmiclientProvides framework of classes and interfaces for a Java Card technology-based client.

com.sun.javacard.rmiclientlib - package com.sun.javacard.rmiclientlibProvides a framework of classes and interfaces for building Java Card RMI-based client applications.

COMMAND_DATA_TOO_LONG - Static variable in exception javacard.framework.service.ServiceException

This reason code is used to indicate that the incoming data for a command in the APDU object does not fit in the APDU buffer.

COMMAND_IS_FINISHED - Static variable in exception javacard.framework.service.ServiceException

This reason code is used to indicate that the command in the APDU object has been completely processed.

CryptoException - Exception in javacard.securityCryptoException represents a cryptography-related exception.

CryptoException(short) - Constructor for exception javacard.security.CryptoException Constructs a CryptoException with the specified reason.

CryptoExceptionSubclass - Exception in com.sun.javacard.javax.smartcard.rmiclientThis exception class represents a card subclass of CryptoException.

CryptoExceptionSubclass(String, short) - Constructor for exception com.sun.javacard.javax.smartcard.rmiclient.CryptoExceptionSubclass

Page 30: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Constructs an CryptoExceptionSubclass with the specified reason and specified error message.

D

DISPATCH_TABLE_FULL - Static variable in exception javacard.framework.service.ServiceException

This reason code is used to indicate that a dispatch table is full done(RemoteCall) - Method in class com.sun.javacard.rmiclientlib.JCRemoteRefImpl

Deprecated.

E

EMPTY_TAG - Static variable in exception javacardx.framework.tlv.TLVException This reason code is used to indicate that the Tag object is empty

EMPTY_TLV - Static variable in exception javacardx.framework.tlv.TLVException This reason code is used to indicate that the TLV object is empty

exchangeAPDU(byte[]) - Method in class com.sun.javacard.clientlib.ApduIOCardAccessor Implementation of exchangeAPDU method of CardAccessor interface

exchangeAPDU(byte[]) - Method in interface com.sun.javacard.clientlib.CardAccessor This method sends the specified data to the smartcard, waits for the response and returns the response in the return data.

ExternalException - Exception in javacardx.externalExternalException represents an external subsystem related exception.

ExternalException(short) - Constructor for exception javacardx.external.ExternalException Constructs a ExternalException with the specified reason.

ExternalExceptionSubclass - Exception in com.sun.javacard.javax.smartcard.rmiclientExternalException represents an external subsystem related exception.

ExternalExceptionSubclass(String, short) - Constructor for exception com.sun.javacard.javax.smartcard.rmiclient.ExternalExceptionSubclass

F

Page 31: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

format - Variable in class com.sun.javacard.rmiclientlib.JCRMIConnect Format of the remote references.

G

getInitialReference() - Method in class com.sun.javacard.rmiclientlib.JCRMIConnect Parses the R-APDU which was returned during selecting an applet, returns a reference to an initial remote object

getINSByte() - Method in class com.sun.javacard.javax.smartcard.rmiclient.CardObjectFactory returns the configured ISO 7816-4 command INS byte to be used in the Java Card platform remote method invocation command

getMessage() - Method in exception com.sun.javacard.javax.smartcard.rmiclient.APDUExceptionSubclass

Returns the error message string of this throwable object. getMessage() - Method in exception com.sun.javacard.javax.smartcard.rmiclient.BioExceptionSubclass

getMessage() - Method in exception com.sun.javacard.javax.smartcard.rmiclient.CardExceptionSubclass

Returns the error message string of this throwable object. getMessage() - Method in exception com.sun.javacard.javax.smartcard.rmiclient.CardRuntimeExceptionSubclass

Returns the error message string of this throwable object. getMessage() - Method in exception com.sun.javacard.javax.smartcard.rmiclient.CryptoExceptionSubclass

Returns the error message string of this throwable object. getMessage() - Method in exception com.sun.javacard.javax.smartcard.rmiclient.ExternalExceptionSubclass

getMessage() - Method in exception com.sun.javacard.javax.smartcard.rmiclient.ISOExceptionSubclass

Returns the error message string of this throwable object. getMessage() - Method in exception com.sun.javacard.javax.smartcard.rmiclient.PINExceptionSubclass

Returns the error message string of this throwable object. getMessage() - Method in exception com.sun.javacard.javax.smartcard.rmiclient.ServiceExceptionSubclass

Returns the error message string of this throwable object.

Page 32: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

getMessage() - Method in exception com.sun.javacard.javax.smartcard.rmiclient.SystemExceptionSubclass

Returns the error message string of this throwable object. getMessage() - Method in exception com.sun.javacard.javax.smartcard.rmiclient.TLVExceptionSubclass

getMessage() - Method in exception com.sun.javacard.javax.smartcard.rmiclient.TransactionExceptionSubclass

Returns the error message string of this throwable object. getMessage() - Method in exception com.sun.javacard.javax.smartcard.rmiclient.UserExceptionSubclass

Returns the error message string of this throwable object. getMessage() - Method in exception com.sun.javacard.javax.smartcard.rmiclient.UtilExceptionSubclass

getObject(byte[], int, Class, CardAccessor) - Method in class com.sun.javacard.javax.smartcard.rmiclient.CardObjectFactory

This abstract method returns the instance of the card object corresponding to the value returned from the card.

getReason() - Method in exception javacard.framework.CardException Get reason code

getReason() - Method in exception javacard.framework.CardRuntimeException Get reason code

getRefClass(ObjectOutput) - Method in class com.sun.javacard.rmiclientlib.JCRemoteRefImpl Unsupported operation.

getRemoteObject(byte[], int, CardAccessor) - Method in class com.sun.javacard.javax.smartcard.rmiclient.CardObjectFactory

This abstract method instantiates a stub or proxy object corresponding to the remote reference returned from the card

getRemoteObject(byte[], int, CardAccessor) - Method in class com.sun.javacard.rmiclientlib.JCCardObjectFactory

Creates the stub instance for object reference returned from the card, assuming the card returned a reference with class name.

getRemoteObject(byte[], int, CardAccessor) - Method in class com.sun.javacard.rmiclientlib.JCCardProxyFactory

Creates the stub instance for object reference returned from the card, assuming the card returned a reference with list of interface names.

getRemoteRefFormat() - Method in class com.sun.javacard.javax.smartcard.rmiclient.CardObjectFactory

returns the format of Java Card RMI remote object reference descriptor supported.

Page 33: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

getRemoteRefFormat() - Method in class com.sun.javacard.rmiclientlib.JCCardObjectFactory Returns constant REF_FORMAT_CLASS defined in class CardObjectFactory.

getRemoteRefFormat() - Method in class com.sun.javacard.rmiclientlib.JCCardProxyFactory Returns constant REF_FORMAT_INTERFACES defined in class CardObjectFactory.

I

ILLEGAL_AID - Static variable in exception javacard.framework.SystemException This reason code is used by the javacard.framework.Applet.register() method to indicate that the input AID parameter is not a legal AID value.

ILLEGAL_PARAM - Static variable in exception javacard.framework.service.ServiceException This reason code is used to indicate that an input parameter is not allowed.

ILLEGAL_SIZE - Static variable in exception javacardx.framework.tlv.TLVException This reason code is used to indicate that the size of a TLV or Tag representation in the input parameter is greater than the supported size or will result in in a TLV struture of greater than supported size

ILLEGAL_TRANSIENT - Static variable in exception javacard.framework.SystemException This reason code is used to indicate that the request to create a transient object is not allowed in the current applet context.

ILLEGAL_USE - Static variable in exception javacard.framework.APDUException This APDUException reason code indicates that the method should not be invoked based on the current state of the APDU.

ILLEGAL_USE - Static variable in exception javacard.framework.SystemException This reason code is used to indicate that the requested function is not allowed.

ILLEGAL_USE - Static variable in exception javacard.security.CryptoException This reason code is used to indicate that the signature or cipher algorithm does not pad the incoming message and the input message is not block aligned.

ILLEGAL_USE - Static variable in exception javacardx.biometry.BioException This reason code is used to indicate that the method should not be invoked based on the current state of the card.

ILLEGAL_VALUE - Static variable in exception javacard.framework.PINException This reason code is used to indicate that one or more input parameters is out of allowed bounds.

ILLEGAL_VALUE - Static variable in exception javacard.framework.SystemException This reason code is used to indicate that one or more input parameters is out of allowed bounds.

ILLEGAL_VALUE - Static variable in exception javacard.security.CryptoException This reason code is used to indicate that one or more input parameters is out of allowed bounds.

ILLEGAL_VALUE - Static variable in exception javacardx.biometry.BioException This reason code is used to indicate that one or more input parameters is out of allowed bounds.

Page 34: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

ILLEGAL_VALUE - Static variable in exception javacardx.framework.util.UtilException This reason code is used to indicate that one or more input parameters is not the correct type or is out of allowed bounds.

IN_PROGRESS - Static variable in exception javacard.framework.TransactionException This reason code is used by the beginTransaction method to indicate a transaction is already in progress.

INSUFFICIENT_STORAGE - Static variable in exception javacardx.framework.tlv.TLVException This reason code is used to indicate that the configured storage capacity of the object will be exceeded

INTERNAL_ERROR - Static variable in exception javacardx.external.ExternalException This reason code is used to indicate that an unrecoverable external access error occurred.

INTERNAL_FAILURE - Static variable in exception javacard.framework.TransactionException This reason code is used during a transaction to indicate an internal Java Card runtime environment problem (fatal error).

INVALID_DATA - Static variable in exception javacardx.biometry.BioException This reason code is used to indicate that the data the system encountered is illegible.

INVALID_INIT - Static variable in exception javacard.security.CryptoException This reason code is used to indicate that the signature or cipher object has not been correctly initialized for the requested operation.

INVALID_PARAM - Static variable in exception javacardx.external.ExternalException This reason code is used to indicate that an input parameter is invalid.

INVALID_PARAM - Static variable in exception javacardx.framework.tlv.TLVException This reason code is used to indicate that one or more input parameters is invalid.

invoke(Remote, Method, Object[], long) - Method in class com.sun.javacard.rmiclientlib.JCRemoteRefImpl

This method is used by rmic-generated stubs. invoke(RemoteCall) - Method in class com.sun.javacard.rmiclientlib.JCRemoteRefImpl

Deprecated. invoke(Object, Method, Object[]) - Method in class com.sun.javacard.rmiclientlib.JCRemoteRefImpl

This method is used by dynamically generated proxies. IO_ERROR - Static variable in exception javacard.framework.APDUException

This reason code indicates that an unrecoverable error occurred in the I/O transmission layer. ISOException - Exception in javacard.framework

ISOException class encapsulates an ISO 7816-4 response status word as its reason code.ISOException(short) - Constructor for exception javacard.framework.ISOException

Constructs an ISOException instance with the specified status word. ISOExceptionSubclass - Exception in com.sun.javacard.javax.smartcard.rmiclient

This exception class represents a card subclass of ISOException.ISOExceptionSubclass(String, short) - Constructor for exception com.sun.javacard.javax.smartcard.

Page 35: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

rmiclient.ISOExceptionSubclass Constructs an ISOExceptionSubclass with the specified reason and specified error message.

J

javacard.framework - package javacard.frameworkProvides Java Card API exceptions that may be re-thrown on the client.

javacard.framework.service - package javacard.framework.serviceProvides Java Card API exceptions that may be re-thrown on the client.

javacard.security - package javacard.securityProvides Java Card platform exceptions that may be re-thrown on the client.

javacardx.biometry - package javacardx.biometryExtension package that contains functionality for implementing a biometric framework on the Java Card platform.

javacardx.external - package javacardx.externalExtension package that provides mechanisms to access memory subsystems which are not directly addressable by the Java Card runtime environment(Java Card RE) on the Java Card platform.

javacardx.framework.tlv - package javacardx.framework.tlvExtension package that contains functionality, for managing storage for BER TLV formatted data, based on the ASN.1 BER encoding rules of ISO/IEC 8825-1:2002, as well as parsing and editing BER TLV formatted data in I/O buffers.

javacardx.framework.util - package javacardx.framework.utilExtension package that contains common utility functions for manipulating arrays of primitive components - byte, short or int.

JCCardObjectFactory - Class in com.sun.javacard.rmiclientlibProcesses the data returned from the card in the format defined for Java Card RMI.

JCCardObjectFactory() - Constructor for class com.sun.javacard.rmiclientlib.JCCardObjectFactory The constructor.

JCCardProxyFactory - Class in com.sun.javacard.rmiclientlibProcesses the data returned from the card in the format defined for Java Card RMI.

JCCardProxyFactory() - Constructor for class com.sun.javacard.rmiclientlib.JCCardProxyFactory Constructor for the factory.

JCRemoteRefImpl - Class in com.sun.javacard.rmiclientlibRepresents a reference to a card object.

JCRemoteRefImpl(short, String, CardAccessor, CardObjectFactory) - Constructor for class com.sun.javacard.rmiclientlib.JCRemoteRefImpl

Creates new JCRemoteRefImpl

Page 36: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

JCRMIConnect - Class in com.sun.javacard.rmiclientlibThe main class of the Java Card RMI client API.

JCRMIConnect(CardAccessor) - Constructor for class com.sun.javacard.rmiclientlib.JCRMIConnect

Creates a new instance of JCRMIConnect

M

MALFORMED_TAG - Static variable in exception javacardx.framework.tlv.TLVException This reason code is used to indicate that the tag representation is not a well-formed BER Tag

MALFORMED_TLV - Static variable in exception javacardx.framework.tlv.TLVException This reason code is used to indicate that the TLV representation is not a well-formed BER TLV

N

newCall(RemoteObject, Operation[], int, long) - Method in class com.sun.javacard.rmiclientlib.JCRemoteRefImpl

Deprecated. NO_RESOURCE - Static variable in exception javacard.framework.SystemException

This reason code is used to indicate that there is insufficient resource in the Card for the request.

NO_SUCH_ALGORITHM - Static variable in exception javacard.security.CryptoException This reason code is used to indicate that the requested algorithm or key type is not supported.

NO_SUCH_BIO_TEMPLATE - Static variable in exception javacardx.biometry.BioException This reason code is used to indicate that the provided bio template type is not supported by the template builder.

NO_SUCH_SUBSYSTEM - Static variable in exception javacardx.external.ExternalException This reason code is used to indicate that specified external subsystem is not available.

NO_T0_GETRESPONSE - Static variable in exception javacard.framework.APDUException This reason code indicates that during T=0 protocol, the CAD did not return a GET RESPONSE command in response to a <61xx> response status to send additional data.

NO_T0_REISSUE - Static variable in exception javacard.framework.APDUException This reason code indicates that during T=0 protocol, the CAD did not reissue the same APDU command with the corrected length in response to a <6Cxx> response status to request command reissue with the specified length.

NO_TEMPLATES_ENROLLED - Static variable in exception javacardx.biometry.BioException

Page 37: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

This reason code is used to indicate that no reference template is available for matching, or that the reference template is uninitialized.

NO_TRANSIENT_SPACE - Static variable in exception javacard.framework.SystemException This reason code is used by the makeTransient..() methods to indicate that no room is available in volatile memory for the requested object.

NOT_IN_PROGRESS - Static variable in exception javacard.framework.TransactionException This reason code is used by the abortTransaction and commitTransaction methods when a transaction is not in progress.

P

PINException - Exception in javacard.frameworkPINException represents a OwnerPIN class access-related exception.

PINException(short) - Constructor for exception javacard.framework.PINException Constructs a PINException.

PINExceptionSubclass - Exception in com.sun.javacard.javax.smartcard.rmiclientThis exception class represents a card subclass of PINException.

PINExceptionSubclass(String, short) - Constructor for exception com.sun.javacard.javax.smartcard.rmiclient.PINExceptionSubclass

Constructs an PINExceptionSubclass with the specified reason and specified error message.

R

readExternal(ObjectInput) - Method in class com.sun.javacard.rmiclientlib.JCRemoteRefImpl Unsupported operation.

REF_FORMAT_CLASS - Static variable in class com.sun.javacard.javax.smartcard.rmiclient.CardObjectFactory

This value (=1) is used to signify that the CardObjectFactory implementation suppports the Java Card RMI remote reference format using the name of the card implementation remote class.

REF_FORMAT_INTERFACES - Static variable in class com.sun.javacard.javax.smartcard.rmiclient.CardObjectFactory

This value (=2) is used to signify that the CardObjectFactory implementation suppports the Java Card RMI remote reference format using the names of the remote interfaces implemented by the card implementation remote class.

REF_FORMAT_NONE - Static variable in class com.sun.javacard.javax.smartcard.rmiclient.

Page 38: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

CardObjectFactory This value (=0) is used to signify that the CardObjectFactory implementation does not suppport any Java Card RMI remote reference descriptor formats.

REF_WITH_CLASS_NAME - Static variable in class com.sun.javacard.rmiclientlib.JCRMIConnect Constant used as the 2nd parameter to selectApplet method.

REF_WITH_INTERFACE_NAMES - Static variable in class com.sun.javacard.rmiclientlib.JCRMIConnect

Constant used as the 2nd parameter to selectApplet method. REMOTE_OBJECT_NOT_EXPORTED - Static variable in exception javacard.framework.service.ServiceException

This reason code is used by RMIService to indicate that the remote method returned an remote object which has not been exported.

remoteEquals(RemoteRef) - Method in class com.sun.javacard.rmiclientlib.JCRemoteRefImpl Compares two remote objects for being identical.

remoteHashCode() - Method in class com.sun.javacard.rmiclientlib.JCRemoteRefImpl Unsupported operation.

remoteToString() - Method in class com.sun.javacard.rmiclientlib.JCRemoteRefImpl String representation of remote object.

S

selectApplet(byte[], byte) - Method in class com.sun.javacard.rmiclientlib.JCRMIConnect Selects an applet, requesting initial reference in the format specified by the 2nd parameter.

selectResponse - Variable in class com.sun.javacard.rmiclientlib.JCRMIConnect Response to the SELECT command is stored in this field.

ServiceException - Exception in javacard.framework.serviceServiceException represents a service framework related exception.

ServiceException(short) - Constructor for exception javacard.framework.service.ServiceException Constructs a ServiceException.

ServiceExceptionSubclass - Exception in com.sun.javacard.javax.smartcard.rmiclientThis exception class represents a card subclass of ServiceException.

ServiceExceptionSubclass(String, short) - Constructor for exception com.sun.javacard.javax.smartcard.rmiclient.ServiceExceptionSubclass

Constructs an ServiceExceptionSubclass with the specified reason and specified error message. setINSByte(byte) - Method in class com.sun.javacard.javax.smartcard.rmiclient.CardObjectFactory

Sets the ISO 7816-4 header INS byte to use for Java Card RMI method invocation commands. setReason(short) - Method in exception javacard.framework.CardException

Set reason code.

Page 39: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

setReason(short) - Method in exception javacard.framework.CardRuntimeException Set reason code.

SystemException - Exception in javacard.frameworkSystemException represents a JCSystem class related exception.

SystemException(short) - Constructor for exception javacard.framework.SystemException Constructs a SystemException.

SystemExceptionSubclass - Exception in com.sun.javacard.javax.smartcard.rmiclientThis exception class represents a card subclass of SystemException.

SystemExceptionSubclass(String, short) - Constructor for exception com.sun.javacard.javax.smartcard.rmiclient.SystemExceptionSubclass

Constructs an SystemExceptionSubclass with the specified reason and specified error message.

T

T1_IFD_ABORT - Static variable in exception javacard.framework.APDUException This reason code indicates that during T=1 protocol, the CAD returned an ABORT S-Block command and aborted the data transfer.

TAG_NUMBER_GREATER_THAN_32767 - Static variable in exception javacardx.framework.tlv.TLVException

This reason code is used to indicate that the tag number value greater than 32767 TAG_SIZE_GREATER_THAN_127 - Static variable in exception javacardx.framework.tlv.TLVException

This reason code is used to indicate that the size of the tag representation is greater than 127 bytes

throwIt(short) - Static method in exception javacard.framework.APDUException Throws an instance of APDUException with the specified reason.

throwIt(short) - Static method in exception javacard.framework.CardException Throw an instance of CardException class with the specified reason.

throwIt(short) - Static method in exception javacard.framework.CardRuntimeException Throw an instance of the CardRuntimeException class with the specified reason.

throwIt(short) - Static method in exception javacard.framework.ISOException Throws an instance of the ISOException class with the specified status word.

throwIt(short) - Static method in exception javacard.framework.PINException Throws an instance of PINException with the specified reason.

throwIt(short) - Static method in exception javacard.framework.service.ServiceException Throws an instance of ServiceException with the specified reason.

throwIt(short) - Static method in exception javacard.framework.SystemException Throws an instance of SystemException with the specified reason.

Page 40: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

throwIt(short) - Static method in exception javacard.framework.TransactionException Throws an instance of TransactionException with the specified reason.

throwIt(short) - Static method in exception javacard.framework.UserException Throws an instance of UserException with the specified reason.

throwIt(short) - Static method in exception javacard.security.CryptoException Throws an instance of CryptoException with the specified reason.

throwIt(short) - Static method in exception javacardx.biometry.BioException Throws the Java Card runtime environment owned instance of BioException with the specified reason.

throwIt(short) - Static method in exception javacardx.external.ExternalException Throws the Java Card runtime environment-owned instance of ExternalException with the specified reason.

throwIt(short) - Static method in exception javacardx.framework.tlv.TLVException Throws the Java Card runtime environment-owned instance of TLVException with the specified reason.

throwIt(short) - Static method in exception javacardx.framework.util.UtilException Throws the Java Card runtime environment-owned instance of UtilException with the specified reason.

TLV_LENGTH_GREATER_THAN_32767 - Static variable in exception javacardx.framework.tlv.TLVException

This reason code is used to indicate that the Length component value in the TLV is greater than 32767

TLV_SIZE_GREATER_THAN_32767 - Static variable in exception javacardx.framework.tlv.TLVException

This reason code is used to indicate that the TLV requires more that 32767 bytes to represent TLVException - Exception in javacardx.framework.tlv

TLVException represents a TLV-related exception.TLVException(short) - Constructor for exception javacardx.framework.tlv.TLVException

Constructs a TLVException with the specified reason. TLVExceptionSubclass - Exception in com.sun.javacard.javax.smartcard.rmiclient

TLVException represents a TLV-related exception.TLVExceptionSubclass(String, short) - Constructor for exception com.sun.javacard.javax.smartcard.rmiclient.TLVExceptionSubclass

TransactionException - Exception in javacard.framework

TransactionException represents an exception in the transaction subsystem.TransactionException(short) - Constructor for exception javacard.framework.TransactionException

Constructs a TransactionException with the specified reason. TransactionExceptionSubclass - Exception in com.sun.javacard.javax.smartcard.rmiclient

This exception class represents a card subclass of TransactionException.

Page 41: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

TransactionExceptionSubclass(String, short) - Constructor for exception com.sun.javacard.javax.smartcard.rmiclient.TransactionExceptionSubclass

Constructs an TransactionExceptionSubclass with the specified reason and specified error message.

TYPE_MISMATCHED - Static variable in exception javacardx.framework.util.UtilException This reason code is used to indicate that input parameters are not the same type.

U

UNINITIALIZED_KEY - Static variable in exception javacard.security.CryptoException This reason code is used to indicate that the key is uninitialized.

UserException - Exception in javacard.frameworkUserException represents a User exception.

UserException() - Constructor for exception javacard.framework.UserException Constructs a UserException with reason = 0.

UserException(short) - Constructor for exception javacard.framework.UserException Constructs a UserException with the specified reason.

UserExceptionSubclass - Exception in com.sun.javacard.javax.smartcard.rmiclientThis exception class represents a card subclass of UserException.

UserExceptionSubclass(String, short) - Constructor for exception com.sun.javacard.javax.smartcard.rmiclient.UserExceptionSubclass

Constructs an UserExceptionSubclass with the specified reason and specified error message. UtilException - Exception in javacardx.framework.util

UtilException represents a util related exception.UtilException(short) - Constructor for exception javacardx.framework.util.UtilException

Constructs a UtilException with the specified reason. UtilExceptionSubclass - Exception in com.sun.javacard.javax.smartcard.rmiclient

UtilException represents a util related exception.UtilExceptionSubclass(String, short) - Constructor for exception com.sun.javacard.javax.smartcard.rmiclient.UtilExceptionSubclass

W

writeExternal(ObjectOutput) - Method in class com.sun.javacard.rmiclientlib.JCRemoteRefImpl

Page 42: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Unsupported operation.

A B C D E F G I J M N P R S T U W

Overview Package Class Tree Deprecated Index Help

PREV NEXT FRAMES NO FRAMES All Classes

Page 43: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV NEXT FRAMES NO FRAMES All Classes

How This API Document Is Organized

This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.

Overview

The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.

Package

Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:

Interfaces (italic) Classes Enums Exceptions Errors Annotation Types

Class/Interface

Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:

Class inheritance diagram Direct Subclasses All Known Subinterfaces All Known Implementing Classes Class/interface declaration Class/interface description

Page 44: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Nested Class Summary Field Summary Constructor Summary Method Summary

Field Detail Constructor Detail Method Detail

Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.

Annotation Type

Each annotation type has its own separate page with the following sections:

Annotation Type declaration Annotation Type description Required Element Summary Optional Element Summary Element Detail

Enum

Each enum has its own separate page with the following sections:

Enum declaration Enum description Enum Constant Summary Enum Constant Detail

Tree (Class Hierarchy)

There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.

When viewing the Overview page, clicking on "Tree" displays the hierarchy for

Page 45: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

all packages. When viewing a particular package, class or interface page, clicking "Tree"

displays the hierarchy for only that package.

Deprecated API

The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.

Index

The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.

Prev/Next

These links take you to the next or previous class, interface, package, or related page.

Frames/No Frames

These links show and hide the HTML frames. All pages are available with or without frames.

Constant Field Values

The Constant Field Values page lists the static final fields and their values.

This help file applies to API documentation generated using the standard doclet.

Overview Package Class Tree Deprecated Index Help

PREV NEXT FRAMES NO FRAMES All Classes

Page 46: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

All Classes APDUException APDUExceptionSubclass ApduIOCardAccessor BioException BioExceptionSubclass CardAccessor CardException CardExceptionSubclass CardObjectFactory CardRuntimeException CardRuntimeExceptionSubclass CryptoException CryptoExceptionSubclass ExternalException ExternalExceptionSubclass ISOException ISOExceptionSubclass JCCardObjectFactory JCCardProxyFactory JCRemoteRefImpl JCRMIConnect PINException PINExceptionSubclass ServiceException ServiceExceptionSubclass SystemException SystemExceptionSubclass TLVException TLVExceptionSubclass TransactionException TransactionExceptionSubclass UserException UserExceptionSubclass UtilException UtilExceptionSubclass

Page 47: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES All Classes

Package javacard.framework

Provides Java Card API exceptions that may be re-thrown on the client.

See: Description

Exception SummaryAPDUException APDUException represents an APDU related exception.

CardException The CardException class defines a field reason and two accessor methods getReason() and setReason().

CardRuntimeException The CardRuntimeException class defines a field reason and two accessor methods getReason() and setReason().

ISOException ISOException class encapsulates an ISO 7816-4 response status word as its reason code.

PINException PINException represents a OwnerPIN class access-related exception.

SystemException SystemException represents a JCSystem class related exception.

TransactionException TransactionException represents an exception in the transaction subsystem.

UserException UserException represents a User exception.

Package javacard.framework Description

Provides Java Card API exceptions that may be re-thrown on the client.

Overview Package Class Tree Deprecated Index Help

PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES All Classes

Page 48: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV NEXT FRAMES NO FRAMES All Classes

Hierarchy For Package javacard.framework

Package Hierarchies:All Packages

Class Hierarchy

java.lang.Object java.lang.Throwable

java.lang.Exception javacard.framework.CardException

javacard.framework.UserException java.lang.RuntimeException

javacard.framework.CardRuntimeException javacard.framework.APDUException javacard.framework.ISOException javacard.framework.PINException javacard.framework.SystemException javacard.framework.TransactionException

Overview Package Class Tree Deprecated Index Help

PREV NEXT FRAMES NO FRAMES All Classes

Page 49: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV NEXT FRAMES NO FRAMES All Classes

Hierarchy For Package com.sun.javacard.rmiclientlib

Package Hierarchies:All Packages

Class Hierarchy

java.lang.Object com.sun.javacard.javax.smartcard.rmiclient.CardObjectFactory

com.sun.javacard.rmiclientlib.JCCardObjectFactory com.sun.javacard.rmiclientlib.JCCardProxyFactory

com.sun.javacard.rmiclientlib.JCRemoteRefImpl (implements java.lang.reflect.InvocationHandler, java.rmi.server.RemoteRef)

com.sun.javacard.rmiclientlib.JCRMIConnect

Overview Package Class Tree Deprecated Index Help

PREV NEXT FRAMES NO FRAMES All Classes

Page 50: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES All Classes

Package com.sun.javacard.rmiclientlib

Provides a framework of classes and interfaces for building Java Card RMI-based client applications.

See: Description

Class Summary

JCCardObjectFactory Processes the data returned from the card in the format defined for Java Card RMI.

JCCardProxyFactory Processes the data returned from the card in the format defined for Java Card RMI.

JCRemoteRefImpl Represents a reference to a card object.

JCRMIConnect The main class of the Java Card RMI client API.

Package com.sun.javacard.rmiclientlib Description

Provides a framework of classes and interfaces for building Java Card RMI-based client applications.

Overview Package Class Tree Deprecated Index Help

PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES All Classes

Page 51: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES All Classes

Package com.sun.javacard.javax.smartcard.rmiclient

Provides framework of classes and interfaces for a Java Card technology-based client.

See: Description

Class Summary

CardObjectFactory This CardObjectFactory abstract class represents the base class for Java Card RMI version 2.2.2 stub generation implementations.

Exception Summary

APDUExceptionSubclass This exception class represents a card subclass of APDUException.

BioExceptionSubclassThe BioException class encapsulates specific exceptions which can be thrown by the methods of the javacardx.biometry package in case of error.

CardExceptionSubclass This exception class represents a subclass of CardException on the card.

CardRuntimeExceptionSubclass This exception class represents a subclass of CardRuntimeException on the card.

CryptoExceptionSubclass This exception class represents a card subclass of CryptoException.

ExternalExceptionSubclass ExternalException represents an external subsystem related exception.

ISOExceptionSubclass This exception class represents a card subclass of ISOException.

PINExceptionSubclass This exception class represents a card subclass of PINException.

Page 52: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

ServiceExceptionSubclass This exception class represents a card subclass of ServiceException.

SystemExceptionSubclass This exception class represents a card subclass of SystemException.

TLVExceptionSubclass TLVException represents a TLV-related exception.

TransactionExceptionSubclass This exception class represents a card subclass of TransactionException.

UserExceptionSubclass This exception class represents a card subclass of UserException.

UtilExceptionSubclass UtilException represents a util related exception.

Package com.sun.javacard.javax.smartcard.rmiclient Description

Provides framework of classes and interfaces for a Java Card technology-based client.

Overview Package Class Tree Deprecated Index Help

PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES All Classes

Page 53: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV NEXT FRAMES NO FRAMES All Classes

Hierarchy For Package com.sun.javacard.javax.smartcard.rmiclient

Package Hierarchies:All Packages

Class Hierarchy

java.lang.Object com.sun.javacard.javax.smartcard.rmiclient.CardObjectFactory java.lang.Throwable

java.lang.Exception javacard.framework.CardException

com.sun.javacard.javax.smartcard.rmiclient.CardExceptionSubclass

javacard.framework.UserException com.sun.javacard.javax.smartcard.rmiclient.

UserExceptionSubclass java.lang.RuntimeException

javacard.framework.CardRuntimeException javacard.framework.APDUException

com.sun.javacard.javax.smartcard.rmiclient.APDUExceptionSubclass

javacardx.biometry.BioException com.sun.javacard.javax.smartcard.rmiclient.

BioExceptionSubclass com.sun.javacard.javax.smartcard.rmiclient.

CardRuntimeExceptionSubclass javacard.security.CryptoException

com.sun.javacard.javax.smartcard.rmiclient.CryptoExceptionSubclass

javacardx.external.ExternalException com.sun.javacard.javax.smartcard.rmiclient.

Page 54: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

ExternalExceptionSubclass javacard.framework.ISOException

com.sun.javacard.javax.smartcard.rmiclient.ISOExceptionSubclass

javacard.framework.PINException com.sun.javacard.javax.smartcard.rmiclient.

PINExceptionSubclass javacard.framework.service.ServiceException

com.sun.javacard.javax.smartcard.rmiclient.ServiceExceptionSubclass

javacard.framework.SystemException com.sun.javacard.javax.smartcard.rmiclient.

SystemExceptionSubclass javacardx.framework.tlv.TLVException

com.sun.javacard.javax.smartcard.rmiclient.TLVExceptionSubclass

javacard.framework.TransactionException com.sun.javacard.javax.smartcard.rmiclient.

TransactionExceptionSubclass javacardx.framework.util.UtilException

com.sun.javacard.javax.smartcard.rmiclient.UtilExceptionSubclass

Overview Package Class Tree Deprecated Index Help

PREV NEXT FRAMES NO FRAMES All Classes

Page 55: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV NEXT FRAMES NO FRAMES All Classes

Hierarchy For Package com.sun.javacard.clientlib

Package Hierarchies:All Packages

Class Hierarchy

java.lang.Object com.sun.javacard.clientlib.ApduIOCardAccessor (implements com.sun.javacard.

clientlib.CardAccessor)

Interface Hierarchy

com.sun.javacard.clientlib.CardAccessor

Overview Package Class Tree Deprecated Index Help

PREV NEXT FRAMES NO FRAMES All Classes

Page 56: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES All Classes

Package com.sun.javacard.clientlib

Provides a framework for building client applications capable of exchanging APDUs with Java Cards.

See: Description

Interface SummaryCardAccessor The CardAccessor interface represents a generic smartcard communication API.

Class SummaryApduIOCardAccessor Implementation of CardAccessor using ApduIO library

Package com.sun.javacard.clientlib Description

Provides a framework for building client applications capable of exchanging APDUs with Java Cards.

Overview Package Class Tree Deprecated Index Help

PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES All Classes

Page 57: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

com.sun.javacard.javax.smartcard.rmiclient Class APDUExceptionSubclass

java.lang.Object

java.lang.Throwable

java.lang.Exception

java.lang.RuntimeException

javacard.framework.CardRuntimeException

javacard.framework.APDUException

com.sun.javacard.javax.smartcard.rmiclient.APDUExceptionSubclass

All Implemented Interfaces:

public class APDUExceptionSubclass

extends APDUException

This exception class represents a card subclass of APDUException. APDUException represents an APDU related exception on the card.

See Also:

Field Summary

Fields inherited from class javacard.framework.APDUException

BAD_LENGTH, BUFFER_BOUNDS, ILLEGAL_USE, IO_ERROR,

NO_T0_GETRESPONSE, NO_T0_REISSUE, T1_IFD_ABORT

Page 58: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Constructor SummaryAPDUExceptionSubclass(java.lang.String msg, short reason) Constructs an APDUExceptionSubclass with the specified reason and specified error message.

Method Summary java.lang.

String

getMessage() Returns the error message string of this throwable object.

Methods inherited from class javacard.framework.APDUException

throwIt

Methods inherited from class javacard.framework.CardRuntimeException

getReason, setReason

Methods inherited from class java.lang.Throwable

fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

APDUExceptionSubclass

public APDUExceptionSubclass(java.lang.String msg, short reason)

Constructs an APDUExceptionSubclass with the specified reason and specified error message.

Page 59: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Parameters:msg - the associated message stringreason - the reason for the exception.

Method Detail

getMessage

public java.lang.String getMessage()

Returns the error message string of this throwable object.

Overrides:getMessage in class java.lang.Throwable

Returns:the error message string of this Throwable object if it was created with an error message string; or null if it was created with no error message.

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Page 60: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

com.sun.javacard.javax.smartcard.rmiclient Class BioExceptionSubclass

java.lang.Object

java.lang.Throwable

java.lang.Exception

java.lang.RuntimeException

javacard.framework.CardRuntimeException

javacardx.biometry.BioException

com.sun.javacard.javax.smartcard.rmiclient.BioExceptionSubclass

All Implemented Interfaces:

public class BioExceptionSubclass

extends BioException

The BioException class encapsulates specific exceptions which can be thrown by the methods of the javacardx.biometry package in case of error.

See Also:

Field Summary

Fields inherited from class javacardx.biometry.BioException

ILLEGAL_USE, ILLEGAL_VALUE, INVALID_DATA, NO_SUCH_BIO_TEMPLATE,

NO_TEMPLATES_ENROLLED

Page 61: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Constructor SummaryBioExceptionSubclass(java.lang.String msg, short reason)

Method Summary java.lang.

String

getMessage()

Methods inherited from class javacardx.biometry.BioException

throwIt

Methods inherited from class javacard.framework.CardRuntimeException

getReason, setReason

Methods inherited from class java.lang.Throwable

fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

BioExceptionSubclass

public BioExceptionSubclass(java.lang.String msg, short reason)

Page 62: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Method Detail

getMessage

public java.lang.String getMessage()

Overrides:getMessage in class java.lang.Throwable

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Page 63: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

com.sun.javacard.javax.smartcard.rmiclient Class CardExceptionSubclass

java.lang.Object

java.lang.Throwable

java.lang.Exception

javacard.framework.CardException

com.sun.javacard.javax.smartcard.rmiclient.CardExceptionSubclass

All Implemented Interfaces:

public class CardExceptionSubclass

extends CardException

This exception class represents a subclass of CardException on the card. The CardException class on the card defines a field reason and two accessor methods getReason() and setReason(). The reason field encapsulates the exception cause identifier in the Java Card API All Java Card API checked Exception classes on the card should extend CardException.

See Also:

Constructor SummaryCardExceptionSubclass(java.lang.String msg, short reason) Construct a CardExceptionSubclass instance with the specified reason and the specified error message.

Page 64: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Method Summary java.lang.

String

getMessage() Returns the error message string of this throwable object.

Methods inherited from class javacard.framework.CardException

getReason, setReason, throwIt

Methods inherited from class java.lang.Throwable

fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

CardExceptionSubclass

public CardExceptionSubclass(java.lang.String msg, short reason)

Construct a CardExceptionSubclass instance with the specified reason and the specified error message.

Parameters:msg - the associated message stringreason - the reason for the exception

Method Detail

getMessage

Page 65: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

public java.lang.String getMessage()

Returns the error message string of this throwable object.

Overrides:getMessage in class java.lang.Throwable

Returns:the error message string of this Throwable object if it was created with an error message string; or null if it was created with no error message.

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Page 66: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

com.sun.javacard.javax.smartcard.rmiclient Class CardObjectFactory

java.lang.Object

com.sun.javacard.javax.smartcard.rmiclient.CardObjectFactory

Direct Known Subclasses: JCCardObjectFactory, JCCardProxyFactory

public abstract class CardObjectFactory

extends java.lang.Object

This CardObjectFactory abstract class represents the base class for Java Card RMI version 2.2.2 stub generation implementations. An instance of this class is associated with one Java Card applet selection session.

Field Summarystatic byte REF_FORMAT_CLASS

This value (=1) is used to signify that the CardObjectFactory implementation suppports the Java Card RMI remote reference format using the name of the card implementation remote class.

static byte REF_FORMAT_INTERFACES This value (=2) is used to signify that the CardObjectFactory implementation suppports the Java Card RMI remote reference format using the names of the remote interfaces implemented by the card implementation remote class.

static byte REF_FORMAT_NONE This value (=0) is used to signify that the CardObjectFactory implementation does not suppport any Java Card RMI remote reference descriptor formats.

Constructor SummaryCardObjectFactory() Creates a new CardObjectFactory for this RMI session

Page 67: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Method Summary byte getINSByte()

returns the configured ISO 7816-4 command INS byte to be used in the Java Card platform remote method invocation command

java.lang.

Object

getObject(byte[] buffer, int tagOffset, java.lang.Class type,

CardAccessor cardAccessor) This abstract method returns the instance of the card object corresponding to the value returned from the card.

protected abstract

java.rmi.Remote

getRemoteObject(byte[] buffer, int tagOffset,

CardAccessor cardAccessor) This abstract method instantiates a stub or proxy object corresponding to the remote reference returned from the card

abstract byte

getRemoteRefFormat() returns the format of Java Card RMI remote object reference descriptor supported.

void setINSByte(byte ins) Sets the ISO 7816-4 header INS byte to use for Java Card RMI method invocation commands.

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

REF_FORMAT_NONE

public static final byte REF_FORMAT_NONE

This value (=0) is used to signify that the CardObjectFactory implementation does not suppport any Java Card RMI remote reference descriptor formats.

See Also:Constant Field Values

REF_FORMAT_CLASS

Page 68: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

public static final byte REF_FORMAT_CLASS

This value (=1) is used to signify that the CardObjectFactory implementation suppports the Java Card RMI remote reference format using the name of the card implementation remote class.

See Also:Constant Field Values

REF_FORMAT_INTERFACES

public static final byte REF_FORMAT_INTERFACES

This value (=2) is used to signify that the CardObjectFactory implementation suppports the Java Card RMI remote reference format using the names of the remote interfaces implemented by the card implementation remote class.

See Also:Constant Field Values

Constructor Detail

CardObjectFactory

public CardObjectFactory()

Creates a new CardObjectFactory for this RMI session

Method Detail

getObject

public java.lang.Object getObject(byte[] buffer, int tagOffset, java.lang.Class type, CardAccessor cardAccessor)

throws java.rmi.RemoteException, java.rmi.StubNotFoundException, java.lang.Exception

This abstract method returns the instance of the card object corresponding to the value returned from the card. The value returned by the card may be any of the valid return types in Java Card RMI version 2.2

Page 69: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

protocol format. In particular the return type may be a primitive, an array type or a remote reference descriptor or null. The method delegates processing to getRemoteObject(...) when the response tag is normal and expected type is a remote reference.

Parameters:cardAccessor - used to instantiate stubs or proxies of remote objectsbuffer - the byte array containing the Java Card RMI version 2.2 response datatagOffset - the offset within the array where the response tag is locatedtype - the expected return type in the response data

Returns:the object associated with the response data. Primitive return value is encapsulated in a wrapper object.

Throws: java.rmi.StubNotFoundException - if an appropriate object could not be instantiated java.rmi.RemoteException - for any RMI-specific exceptions java.lang.Exception - for exceptions thrown on the card

getRemoteObject

protected abstract java.rmi.Remote getRemoteObject(byte[] buffer, int tagOffset, CardAccessor cardAccessor)

throws java.lang.Exception

This abstract method instantiates a stub or proxy object corresponding to the remote reference returned from the card

Parameters:buffer - the byte array containing the JC 2.2 RMI response datatagOffset - the offset within the array where the response tag is located

Returns:Stub or proxy

Throws: java.lang.Exception - In case of error during processing

setINSByte

public void setINSByte(byte ins)

Sets the ISO 7816-4 header INS byte to use for Java Card RMI method invocation commands.

Parameters:

Page 70: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

ins - the ISO 7816-4 INS command header byte to use for Java Card RMI invocation commands

getINSByte

public byte getINSByte()

returns the configured ISO 7816-4 command INS byte to be used in the Java Card platform remote method invocation command

Returns:the ISO-7816-4 INS byte

Since:Java Card 2.2

getRemoteRefFormat

public abstract byte getRemoteRefFormat()

returns the format of Java Card RMI remote object reference descriptor supported. It returns one of : REF_FORMAT_NONE, REF_FORMAT_CLASS, REF_FORMAT_INTERFACES

Returns:one of the REF_FORMAT.. values defined above

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Page 71: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

com.sun.javacard.javax.smartcard.rmiclient Class CardRuntimeExceptionSubclass

java.lang.Object

java.lang.Throwable

java.lang.Exception

java.lang.RuntimeException

javacard.framework.CardRuntimeException

com.sun.javacard.javax.smartcard.rmiclient.CardRuntimeExceptionSubclass

All Implemented Interfaces:

public class CardRuntimeExceptionSubclass

extends CardRuntimeException

This exception class represents a subclass of CardRuntimeException on the card. The CardRuntimeException class on the card defines a field reason and two accessor methods getReason() and setReason(). The reason field encapsulates exception cause identifier in the Java Card API. All Java Card API unchecked Exception classes on the card should extend CardRuntimeException.

See Also:

Constructor SummaryCardRuntimeExceptionSubclass(java.lang.String msg, short reason) Construct a CardRuntimeExceptionSubclass instance with the specified reason and the specified error message.

Page 72: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Method Summary java.lang.

String

getMessage() Returns the error message string of this throwable object.

Methods inherited from class javacard.framework.CardRuntimeException

getReason, setReason, throwIt

Methods inherited from class java.lang.Throwable

fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

CardRuntimeExceptionSubclass

public CardRuntimeExceptionSubclass(java.lang.String msg, short reason)

Construct a CardRuntimeExceptionSubclass instance with the specified reason and the specified error message.

Parameters:msg - the associated message stringreason - the reason for the exception

Method Detail

Page 73: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

getMessage

public java.lang.String getMessage()

Returns the error message string of this throwable object.

Overrides:getMessage in class java.lang.Throwable

Returns:the error message string of this Throwable object if it was created with an error message string; or null if it was created with no error message.

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Page 74: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

com.sun.javacard.javax.smartcard.rmiclient Class CryptoExceptionSubclass

java.lang.Object

java.lang.Throwable

java.lang.Exception

java.lang.RuntimeException

javacard.framework.CardRuntimeException

javacard.security.CryptoException

com.sun.javacard.javax.smartcard.rmiclient.CryptoExceptionSubclass

All Implemented Interfaces:

public class CryptoExceptionSubclass

extends CryptoException

This exception class represents a card subclass of CryptoException. CryptoException represents a cryptography-related exception.

See Also:

Field Summary

Fields inherited from class javacard.security.CryptoException

ILLEGAL_USE, ILLEGAL_VALUE, INVALID_INIT, NO_SUCH_ALGORITHM,

UNINITIALIZED_KEY

Page 75: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Constructor SummaryCryptoExceptionSubclass(java.lang.String msg, short reason) Constructs an CryptoExceptionSubclass with the specified reason and specified error message.

Method Summary java.lang.

String

getMessage() Returns the error message string of this throwable object.

Methods inherited from class javacard.security.CryptoException

throwIt

Methods inherited from class javacard.framework.CardRuntimeException

getReason, setReason

Methods inherited from class java.lang.Throwable

fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

CryptoExceptionSubclass

public CryptoExceptionSubclass(java.lang.String msg, short reason)

Constructs an CryptoExceptionSubclass with the specified reason and specified error message.

Page 76: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Parameters:msg - the associated message stringreason - the reason for the exception.

Method Detail

getMessage

public java.lang.String getMessage()

Returns the error message string of this throwable object.

Overrides:getMessage in class java.lang.Throwable

Returns:the error message string of this Throwable object if it was created with an error message string; or null if it was created with no error message.

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Page 77: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

com.sun.javacard.javax.smartcard.rmiclient Class ExternalExceptionSubclass

java.lang.Object

java.lang.Throwable

java.lang.Exception

java.lang.RuntimeException

javacard.framework.CardRuntimeException

javacardx.external.ExternalException

com.sun.javacard.javax.smartcard.rmiclient.ExternalExceptionSubclass

All Implemented Interfaces:

public class ExternalExceptionSubclass

extends ExternalException

ExternalException represents an external subsystem related exception.

The API classes throw Java Card runtime environment-owned instances of ExternalException.

Java Card runtime environment-owned instances of exception classes are temporary Java Card runtime environment Entry Point Objects and can be accessed from any applet context. References to these temporary objects cannot be stored in class variables or instance variables or array components.

Since:2.2.2

See Also:

Page 78: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Field Summary

Fields inherited from class javacardx.external.ExternalException

INTERNAL_ERROR, INVALID_PARAM, NO_SUCH_SUBSYSTEM

Constructor SummaryExternalExceptionSubclass(java.lang.String msg, short reason)

Method Summary java.lang.

String

getMessage()

Methods inherited from class javacardx.external.ExternalException

throwIt

Methods inherited from class javacard.framework.CardRuntimeException

getReason, setReason

Methods inherited from class java.lang.Throwable

fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

Page 79: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

ExternalExceptionSubclass

public ExternalExceptionSubclass(java.lang.String msg, short reason)

Method Detail

getMessage

public java.lang.String getMessage()

Overrides:getMessage in class java.lang.Throwable

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Page 80: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

com.sun.javacard.javax.smartcard.rmiclient Class ISOExceptionSubclass

java.lang.Object

java.lang.Throwable

java.lang.Exception

java.lang.RuntimeException

javacard.framework.CardRuntimeException

javacard.framework.ISOException

com.sun.javacard.javax.smartcard.rmiclient.ISOExceptionSubclass

All Implemented Interfaces:

public class ISOExceptionSubclass

extends ISOException

This exception class represents a card subclass of ISOException. ISOException class encapsulates an ISO 7816-4 response status word as its reason code.

See Also:

Constructor SummaryISOExceptionSubclass(java.lang.String msg, short reason) Constructs an ISOExceptionSubclass with the specified reason and specified error message.

Method Summary

Page 81: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

java.lang.

String

getMessage() Returns the error message string of this throwable object.

Methods inherited from class javacard.framework.ISOException

throwIt

Methods inherited from class javacard.framework.CardRuntimeException

getReason, setReason

Methods inherited from class java.lang.Throwable

fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

ISOExceptionSubclass

public ISOExceptionSubclass(java.lang.String msg, short reason)

Constructs an ISOExceptionSubclass with the specified reason and specified error message.

Parameters:msg - the associated message stringreason - the ISO 7816-4 defined status word

Method Detail

Page 82: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

getMessage

public java.lang.String getMessage()

Returns the error message string of this throwable object.

Overrides:getMessage in class java.lang.Throwable

Returns:the error message string of this Throwable object if it was created with an error message string; or null if it was created with no error message.

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Page 83: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

com.sun.javacard.javax.smartcard.rmiclient Class PINExceptionSubclass

java.lang.Object

java.lang.Throwable

java.lang.Exception

java.lang.RuntimeException

javacard.framework.CardRuntimeException

javacard.framework.PINException

com.sun.javacard.javax.smartcard.rmiclient.PINExceptionSubclass

All Implemented Interfaces:

public class PINExceptionSubclass

extends PINException

This exception class represents a card subclass of PINException. PINException represents a OwnerPIN class access-related exception.

See Also:

Field Summary

Fields inherited from class javacard.framework.PINException

ILLEGAL_VALUE

Page 84: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Constructor SummaryPINExceptionSubclass(java.lang.String msg, short reason) Constructs an PINExceptionSubclass with the specified reason and specified error message.

Method Summary java.lang.

String

getMessage() Returns the error message string of this throwable object.

Methods inherited from class javacard.framework.PINException

throwIt

Methods inherited from class javacard.framework.CardRuntimeException

getReason, setReason

Methods inherited from class java.lang.Throwable

fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

PINExceptionSubclass

public PINExceptionSubclass(java.lang.String msg, short reason)

Constructs an PINExceptionSubclass with the specified reason and specified error message.

Page 85: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Parameters:msg - the associated message stringreason - the reason for the exception.

Method Detail

getMessage

public java.lang.String getMessage()

Returns the error message string of this throwable object.

Overrides:getMessage in class java.lang.Throwable

Returns:the error message string of this Throwable object if it was created with an error message string; or null if it was created with no error message.

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Page 86: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

com.sun.javacard.javax.smartcard.rmiclient Class ServiceExceptionSubclass

java.lang.Object

java.lang.Throwable

java.lang.Exception

java.lang.RuntimeException

javacard.framework.CardRuntimeException

javacard.framework.service.ServiceException

com.sun.javacard.javax.smartcard.rmiclient.ServiceExceptionSubclass

All Implemented Interfaces:

public class ServiceExceptionSubclass

extends ServiceException

This exception class represents a card subclass of ServiceException. ServiceException represents a service framework related exception.

See Also:

Field Summary

Fields inherited from class javacard.framework.service.ServiceException

Page 87: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

CANNOT_ACCESS_IN_COMMAND, CANNOT_ACCESS_OUT_COMMAND,

COMMAND_DATA_TOO_LONG, COMMAND_IS_FINISHED, DISPATCH_TABLE_FULL,

ILLEGAL_PARAM, REMOTE_OBJECT_NOT_EXPORTED

Constructor SummaryServiceExceptionSubclass(java.lang.String msg, short reason) Constructs an ServiceExceptionSubclass with the specified reason and specified error message.

Method Summary java.lang.

String

getMessage() Returns the error message string of this throwable object.

Methods inherited from class javacard.framework.service.ServiceException

throwIt

Methods inherited from class javacard.framework.CardRuntimeException

getReason, setReason

Methods inherited from class java.lang.Throwable

fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

ServiceExceptionSubclass

Page 88: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

public ServiceExceptionSubclass(java.lang.String msg, short reason)

Constructs an ServiceExceptionSubclass with the specified reason and specified error message.

Parameters:msg - the associated message stringreason - the reason for the exception.

Method Detail

getMessage

public java.lang.String getMessage()

Returns the error message string of this throwable object.

Overrides:getMessage in class java.lang.Throwable

Returns:the error message string of this Throwable object if it was created with an error message string; or null if it was created with no error message.

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Page 89: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

com.sun.javacard.javax.smartcard.rmiclient Class SystemExceptionSubclass

java.lang.Object

java.lang.Throwable

java.lang.Exception

java.lang.RuntimeException

javacard.framework.CardRuntimeException

javacard.framework.SystemException

com.sun.javacard.javax.smartcard.rmiclient.SystemExceptionSubclass

All Implemented Interfaces:

public class SystemExceptionSubclass

extends SystemException

This exception class represents a card subclass of SystemException. SystemException represents a JCSystem class related exception.

See Also:

Field Summary

Fields inherited from class javacard.framework.SystemException

ILLEGAL_AID, ILLEGAL_TRANSIENT, ILLEGAL_USE, ILLEGAL_VALUE,

NO_RESOURCE, NO_TRANSIENT_SPACE

Page 90: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Constructor SummarySystemExceptionSubclass(java.lang.String msg, short reason) Constructs an SystemExceptionSubclass with the specified reason and specified error message.

Method Summary java.lang.

String

getMessage() Returns the error message string of this throwable object.

Methods inherited from class javacard.framework.SystemException

throwIt

Methods inherited from class javacard.framework.CardRuntimeException

getReason, setReason

Methods inherited from class java.lang.Throwable

fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

SystemExceptionSubclass

public SystemExceptionSubclass(java.lang.String msg, short reason)

Constructs an SystemExceptionSubclass with the specified reason and specified error message.

Page 91: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Parameters:msg - the associated message stringreason - the reason for the exception.

Method Detail

getMessage

public java.lang.String getMessage()

Returns the error message string of this throwable object.

Overrides:getMessage in class java.lang.Throwable

Returns:the error message string of this Throwable object if it was created with an error message string; or null if it was created with no error message.

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Page 92: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

com.sun.javacard.javax.smartcard.rmiclient Class TLVExceptionSubclass

java.lang.Object

java.lang.Throwable

java.lang.Exception

java.lang.RuntimeException

javacard.framework.CardRuntimeException

javacardx.framework.tlv.TLVException

com.sun.javacard.javax.smartcard.rmiclient.TLVExceptionSubclass

All Implemented Interfaces:

public class TLVExceptionSubclass

extends TLVException

TLVException represents a TLV-related exception.

The API classes throw Java Card runtime environment-owned instances of TLVException.

Java Card runtime environment-owned instances of exception classes are temporary Java Card runtime environment Entry Point Objects and can be accessed from any applet context. References to these temporary objects cannot be stored in class variables, instance variables, or array components.

See Also:

Field Summary

Page 93: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Fields inherited from class javacardx.framework.tlv.TLVException

EMPTY_TAG, EMPTY_TLV, ILLEGAL_SIZE, INSUFFICIENT_STORAGE,

INVALID_PARAM, MALFORMED_TAG, MALFORMED_TLV,

TAG_NUMBER_GREATER_THAN_32767, TAG_SIZE_GREATER_THAN_127,

TLV_LENGTH_GREATER_THAN_32767, TLV_SIZE_GREATER_THAN_32767

Constructor SummaryTLVExceptionSubclass(java.lang.String msg, short reason)

Method Summary java.lang.

String

getMessage()

Methods inherited from class javacardx.framework.tlv.TLVException

throwIt

Methods inherited from class javacard.framework.CardRuntimeException

getReason, setReason

Methods inherited from class java.lang.Throwable

fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Page 94: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Constructor Detail

TLVExceptionSubclass

public TLVExceptionSubclass(java.lang.String msg, short reason)

Method Detail

getMessage

public java.lang.String getMessage()

Overrides:getMessage in class java.lang.Throwable

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Page 95: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

com.sun.javacard.javax.smartcard.rmiclient Class TransactionExceptionSubclass

java.lang.Object

java.lang.Throwable

java.lang.Exception

java.lang.RuntimeException

javacard.framework.CardRuntimeException

javacard.framework.TransactionException

com.sun.javacard.javax.smartcard.rmiclient.TransactionExceptionSubclass

All Implemented Interfaces:

public class TransactionExceptionSubclass

extends TransactionException

This exception class represents a card subclass of TransactionException. TransactionException represents an exception in the transaction subsystem.

See Also:

Field Summary

Fields inherited from class javacard.framework.TransactionException

BUFFER_FULL, IN_PROGRESS, INTERNAL_FAILURE, NOT_IN_PROGRESS

Page 96: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Constructor SummaryTransactionExceptionSubclass(java.lang.String msg, short reason) Constructs an TransactionExceptionSubclass with the specified reason and specified error message.

Method Summary java.lang.

String

getMessage() Returns the error message string of this throwable object.

Methods inherited from class javacard.framework.TransactionException

throwIt

Methods inherited from class javacard.framework.CardRuntimeException

getReason, setReason

Methods inherited from class java.lang.Throwable

fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

TransactionExceptionSubclass

public TransactionExceptionSubclass(java.lang.String msg, short reason)

Constructs an TransactionExceptionSubclass with the specified reason and specified error

Page 97: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

message.

Parameters:msg - the associated message stringreason - the reason for the exception.

Method Detail

getMessage

public java.lang.String getMessage()

Returns the error message string of this throwable object.

Overrides:getMessage in class java.lang.Throwable

Returns:the error message string of this Throwable object if it was created with an error message string; or null if it was created with no error message.

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Page 98: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

com.sun.javacard.javax.smartcard.rmiclient Class UserExceptionSubclass

java.lang.Object

java.lang.Throwable

java.lang.Exception

javacard.framework.CardException

javacard.framework.UserException

com.sun.javacard.javax.smartcard.rmiclient.UserExceptionSubclass

All Implemented Interfaces:

public class UserExceptionSubclass

extends UserException

This exception class represents a card subclass of UserException. UserException represents a User exception.

See Also:

Constructor SummaryUserExceptionSubclass(java.lang.String msg, short reason) Constructs an UserExceptionSubclass with the specified reason and specified error message.

Method Summary

Page 99: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

java.lang.

String

getMessage() Returns the error message string of this throwable object.

Methods inherited from class javacard.framework.UserException

throwIt

Methods inherited from class javacard.framework.CardException

getReason, setReason

Methods inherited from class java.lang.Throwable

fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

UserExceptionSubclass

public UserExceptionSubclass(java.lang.String msg, short reason)

Constructs an UserExceptionSubclass with the specified reason and specified error message.

Parameters:msg - the associated message stringreason - the reason for the exception.

Method Detail

Page 100: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

getMessage

public java.lang.String getMessage()

Returns the error message string of this throwable object.

Overrides:getMessage in class java.lang.Throwable

Returns:the error message string of this Throwable object if it was created with an error message string; or null if it was created with no error message.

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Page 101: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

com.sun.javacard.javax.smartcard.rmiclient Class UtilExceptionSubclass

java.lang.Object

java.lang.Throwable

java.lang.Exception

java.lang.RuntimeException

javacard.framework.CardRuntimeException

javacardx.framework.util.UtilException

com.sun.javacard.javax.smartcard.rmiclient.UtilExceptionSubclass

All Implemented Interfaces:

public class UtilExceptionSubclass

extends UtilException

UtilException represents a util related exception.

The API classes throw Java Card runtime environment-owned instances of UtilException.

Java Card runtime environment-owned instances of exception classes are temporary Java Card runtime environment Entry Point Objects and can be accessed from any applet context. References to these temporary objects cannot be stored in class variables, instance variables, or array components.

See Also:

Field Summary

Page 102: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Fields inherited from class javacardx.framework.util.UtilException

ILLEGAL_VALUE, TYPE_MISMATCHED

Constructor SummaryUtilExceptionSubclass(java.lang.String msg, short reason)

Method Summary java.lang.

String

getMessage()

Methods inherited from class javacardx.framework.util.UtilException

throwIt

Methods inherited from class javacard.framework.CardRuntimeException

getReason, setReason

Methods inherited from class java.lang.Throwable

fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

UtilExceptionSubclass

Page 103: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

public UtilExceptionSubclass(java.lang.String msg, short reason)

Method Detail

getMessage

public java.lang.String getMessage()

Overrides:getMessage in class java.lang.Throwable

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Page 104: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

javacard.framework Class CardRuntimeException

java.lang.Object

java.lang.Throwable

java.lang.Exception

java.lang.RuntimeException

javacard.framework.CardRuntimeException

All Implemented Interfaces:

Direct Known Subclasses: APDUException, BioException, CardRuntimeExceptionSubclass, CryptoException, ExternalException, ISOException, PINException, ServiceException, SystemException, TLVException, TransactionException, UtilException

public class CardRuntimeException

extends java.lang.RuntimeException

The CardRuntimeException class defines a field reason and two accessor methods getReason() and setReason(). The reason field encapsulates exception cause identifier in the Java Card API. All Java Card API unchecked Exception classes should extend CardRuntimeException.

See Also:

Constructor Summary

Page 105: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

CardRuntimeException(short reason) Construct a CardRuntimeException instance with the specified reason.

Method Summary short getReason()

Get reason code

void setReason(short reason) Set reason code.

static void throwIt(short reason) Throw an instance of the CardRuntimeException class with the specified reason.

Methods inherited from class java.lang.Throwable

fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

CardRuntimeException

public CardRuntimeException(short reason)

Construct a CardRuntimeException instance with the specified reason.

Parameters:reason - the reason for the exception

Method Detail

Page 106: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

getReason

public short getReason()

Get reason code

Returns:the reason for the exception

setReason

public void setReason(short reason)

Set reason code.

Parameters:reason - the reason for the exception

throwIt

public static void throwIt(short reason) throws CardRuntimeException

Throw an instance of the CardRuntimeException class with the specified reason.

Parameters:reason - the reason for the exception

Throws: CardRuntimeException - always.

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Page 107: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

javacard.framework Class CardException

java.lang.Object

java.lang.Throwable

java.lang.Exception

javacard.framework.CardException

All Implemented Interfaces:

Direct Known Subclasses: CardExceptionSubclass, UserException

public class CardException

extends java.lang.Exception

The CardException class defines a field reason and two accessor methods getReason() and setReason(). The reason field encapsulates exception cause identifier in the Java Card API. All Java Card API checked Exception classes should extend CardException.

See Also:

Constructor SummaryCardException(short reason) Construct a CardException instance with the specified reason.

Method Summary

Page 108: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

short getReason() Get reason code

void setReason(short reason) Set reason code.

static void throwIt(short reason) Throw an instance of CardException class with the specified reason.

Methods inherited from class java.lang.Throwable

fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

CardException

public CardException(short reason)

Construct a CardException instance with the specified reason.

Parameters:reason - the reason for the exception

Method Detail

getReason

public short getReason()

Get reason code

Page 109: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Returns:the reason for the exception

setReason

public void setReason(short reason)

Set reason code.

Parameters:reason - the reason for the exception

throwIt

public static void throwIt(short reason) throws CardException

Throw an instance of CardException class with the specified reason.

Parameters:reason - the reason for the exception

Throws: CardException - always.

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Page 110: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

javacard.framework Class UserException

java.lang.Object

java.lang.Throwable

java.lang.Exception

javacard.framework.CardException

javacard.framework.UserException

All Implemented Interfaces:

Direct Known Subclasses: UserExceptionSubclass

public class UserException

extends CardException

UserException represents a User exception.

See Also:

Constructor SummaryUserException() Constructs a UserException with reason = 0.

UserException(short reason) Constructs a UserException with the specified reason.

Page 111: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Method Summarystatic void throwIt(short reason)

Throws an instance of UserException with the specified reason.

Methods inherited from class javacard.framework.CardException

getReason, setReason

Methods inherited from class java.lang.Throwable

fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

UserException

public UserException()

Constructs a UserException with reason = 0.

UserException

public UserException(short reason)

Constructs a UserException with the specified reason.

Parameters:reason - the reason for the exception.

Page 112: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Method Detail

throwIt

public static void throwIt(short reason) throws UserException

Throws an instance of UserException with the specified reason.

Parameters:reason - the reason for the exception.

Throws: UserException - always.

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Page 113: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

javacard.framework Class TransactionException

java.lang.Object

java.lang.Throwable

java.lang.Exception

java.lang.RuntimeException

javacard.framework.CardRuntimeException

javacard.framework.TransactionException

All Implemented Interfaces:

Direct Known Subclasses: TransactionExceptionSubclass

public class TransactionException

extends CardRuntimeException

TransactionException represents an exception in the transaction subsystem.

See Also:

Field Summarystatic short BUFFER_FULL

This reason code is used during a transaction to indicate that the commit buffer is full.

Page 114: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

static short IN_PROGRESS This reason code is used by the beginTransaction method to indicate a transaction is already in progress.

static short INTERNAL_FAILURE This reason code is used during a transaction to indicate an internal Java Card runtime environment problem (fatal error).

static short NOT_IN_PROGRESS This reason code is used by the abortTransaction and commitTransaction methods when a transaction is not in progress.

Constructor SummaryTransactionException(short reason) Constructs a TransactionException with the specified reason.

Method Summarystatic void throwIt(short reason)

Throws an instance of TransactionException with the specified reason.

Methods inherited from class javacard.framework.CardRuntimeException

getReason, setReason

Methods inherited from class java.lang.Throwable

fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail

Page 115: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

IN_PROGRESS

public static final short IN_PROGRESS

This reason code is used by the beginTransaction method to indicate a transaction is already in progress.

See Also:Constant Field Values

NOT_IN_PROGRESS

public static final short NOT_IN_PROGRESS

This reason code is used by the abortTransaction and commitTransaction methods when a transaction is not in progress.

See Also:Constant Field Values

BUFFER_FULL

public static final short BUFFER_FULL

This reason code is used during a transaction to indicate that the commit buffer is full.

See Also:Constant Field Values

INTERNAL_FAILURE

public static final short INTERNAL_FAILURE

This reason code is used during a transaction to indicate an internal Java Card runtime

Page 116: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

environment problem (fatal error).

See Also:Constant Field Values

Constructor Detail

TransactionException

public TransactionException(short reason)

Constructs a TransactionException with the specified reason.

Method Detail

throwIt

public static void throwIt(short reason)

Throws an instance of TransactionException with the specified reason.

Throws: TransactionException - always.

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Page 117: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

javacard.framework Class SystemException

java.lang.Object

java.lang.Throwable

java.lang.Exception

java.lang.RuntimeException

javacard.framework.CardRuntimeException

javacard.framework.SystemException

All Implemented Interfaces:

Direct Known Subclasses: SystemExceptionSubclass

public class SystemException

extends CardRuntimeException

SystemException represents a JCSystem class related exception.

See Also:

Field Summarystatic short ILLEGAL_AID

This reason code is used by the javacard.framework.Applet.register() method to indicate that the input AID parameter is not a legal AID value.

Page 118: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

static short ILLEGAL_TRANSIENT This reason code is used to indicate that the request to create a transient object is not allowed in the current applet context.

static short ILLEGAL_USE This reason code is used to indicate that the requested function is not allowed.

static short ILLEGAL_VALUE This reason code is used to indicate that one or more input parameters is out of allowed bounds.

static short NO_RESOURCE This reason code is used to indicate that there is insufficient resource in the Card for the request.

static short NO_TRANSIENT_SPACE This reason code is used by the makeTransient..() methods to indicate that no room is available in volatile memory for the requested object.

Constructor SummarySystemException(short reason) Constructs a SystemException.

Method Summarystatic void throwIt(short reason)

Throws an instance of SystemException with the specified reason.

Methods inherited from class javacard.framework.CardRuntimeException

getReason, setReason

Methods inherited from class java.lang.Throwable

fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object

Page 119: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail

ILLEGAL_VALUE

public static final short ILLEGAL_VALUE

This reason code is used to indicate that one or more input parameters is out of allowed bounds.

See Also:Constant Field Values

NO_TRANSIENT_SPACE

public static final short NO_TRANSIENT_SPACE

This reason code is used by the makeTransient..() methods to indicate that no room is available in volatile memory for the requested object.

See Also:Constant Field Values

ILLEGAL_TRANSIENT

public static final short ILLEGAL_TRANSIENT

This reason code is used to indicate that the request to create a transient object is not allowed in the current applet context. See Java Card Runtime Environment Specification, section 6.2.1 for details.

See Also:Constant Field Values

Page 120: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

ILLEGAL_AID

public static final short ILLEGAL_AID

This reason code is used by the javacard.framework.Applet.register() method to indicate that the input AID parameter is not a legal AID value.

See Also:Constant Field Values

NO_RESOURCE

public static final short NO_RESOURCE

This reason code is used to indicate that there is insufficient resource in the Card for the request.

For example, the virtual machine for the Java Card platform may throw this exception reason when there is insufficient heap space to create a new instance.

See Also:Constant Field Values

ILLEGAL_USE

public static final short ILLEGAL_USE

This reason code is used to indicate that the requested function is not allowed. For example, JCSystem.requestObjectDeletion() method throws this exception if the object deletion mechanism is not implemented.

See Also:Constant Field Values

Page 121: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Constructor Detail

SystemException

public SystemException(short reason)

Constructs a SystemException.

Parameters:reason - the reason for the exception.

Method Detail

throwIt

public static void throwIt(short reason) throws SystemException

Throws an instance of SystemException with the specified reason.

Parameters:reason - the reason for the exception.

Throws: SystemException - always.

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Page 122: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

javacard.framework Class PINException

java.lang.Object

java.lang.Throwable

java.lang.Exception

java.lang.RuntimeException

javacard.framework.CardRuntimeException

javacard.framework.PINException

All Implemented Interfaces:

Direct Known Subclasses: PINExceptionSubclass

public class PINException

extends CardRuntimeException

PINException represents a OwnerPIN class access-related exception.

See Also:

Field Summarystatic short ILLEGAL_VALUE

This reason code is used to indicate that one or more input parameters is out of allowed bounds.

Page 123: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Constructor SummaryPINException(short reason) Constructs a PINException.

Method Summarystatic void throwIt(short reason)

Throws an instance of PINException with the specified reason.

Methods inherited from class javacard.framework.CardRuntimeException

getReason, setReason

Methods inherited from class java.lang.Throwable

fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail

ILLEGAL_VALUE

public static final short ILLEGAL_VALUE

This reason code is used to indicate that one or more input parameters is out of allowed bounds.

See Also:Constant Field Values

Constructor Detail

Page 124: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

PINException

public PINException(short reason)

Constructs a PINException. To conserve on resources use throwIt() to use the Java Card runtime-owned instance of this class.

Parameters:reason - the reason for the exception.

Method Detail

throwIt

public static void throwIt(short reason)

Throws an instance of PINException with the specified reason.

Parameters:reason - the reason for the exception.

Throws: PINException - always.

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Page 125: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

javacard.framework Class ISOException

java.lang.Object

java.lang.Throwable

java.lang.Exception

java.lang.RuntimeException

javacard.framework.CardRuntimeException

javacard.framework.ISOException

All Implemented Interfaces:

Direct Known Subclasses: ISOExceptionSubclass

public class ISOException

extends CardRuntimeException

ISOException class encapsulates an ISO 7816-4 response status word as its reason code.

See Also:

Constructor SummaryISOException(short sw) Constructs an ISOException instance with the specified status word.

Method Summary

Page 126: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

static void throwIt(short sw) Throws an instance of the ISOException class with the specified status word.

Methods inherited from class javacard.framework.CardRuntimeException

getReason, setReason

Methods inherited from class java.lang.Throwable

fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

ISOException

public ISOException(short sw)

Constructs an ISOException instance with the specified status word.

Parameters:sw - the ISO 7816-4 defined status word

Method Detail

throwIt

public static void throwIt(short sw)

Throws an instance of the ISOException class with the specified status word.

Page 127: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Parameters:sw - ISO 7816-4 defined status word

Throws: ISOException - always.

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Page 128: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV NEXT FRAMES NO FRAMES All Classes

Constant Field Values

Contents

com.sun.* javacard.framework.* javacard.security.* javacardx.biometry.* javacardx.external.* javacardx.framework.*

com.sun.*

com.sun.javacard.javax.smartcard.rmiclient.CardObjectFactory

public static final byte REF_FORMAT_CLASS 1

public static final byte REF_FORMAT_INTERFACES 2

public static final byte REF_FORMAT_NONE 0

com.sun.javacard.rmiclientlib.JCRMIConnect

public static final byte REF_WITH_CLASS_NAME 0

public static final byte REF_WITH_INTERFACE_NAMES 16

javacard.framework.*

javacard.framework.APDUException

public static final short BAD_LENGTH 3

public static final short BUFFER_BOUNDS 2

Page 129: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

public static final short ILLEGAL_USE 1

public static final short IO_ERROR 4

public static final short NO_T0_GETRESPONSE 170

public static final short NO_T0_REISSUE 172

public static final short T1_IFD_ABORT 171

javacard.framework.PINException

public static final short ILLEGAL_VALUE 1

javacard.framework.SystemException

public static final short ILLEGAL_AID 4

public static final short ILLEGAL_TRANSIENT 3

public static final short ILLEGAL_USE 6

public static final short ILLEGAL_VALUE 1

public static final short NO_RESOURCE 5

public static final short NO_TRANSIENT_SPACE 2

javacard.framework.TransactionException

public static final short BUFFER_FULL 3

public static final short IN_PROGRESS 1

public static final short INTERNAL_FAILURE 4

public static final short NOT_IN_PROGRESS 2

javacard.framework.service.ServiceException

public static final short CANNOT_ACCESS_IN_COMMAND 4

public static final short CANNOT_ACCESS_OUT_COMMAND 5

public static final short COMMAND_DATA_TOO_LONG 3

Page 130: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

public static final short COMMAND_IS_FINISHED 6

public static final short DISPATCH_TABLE_FULL 2

public static final short ILLEGAL_PARAM 1

public static final short REMOTE_OBJECT_NOT_EXPORTED 7

javacard.security.*

javacard.security.CryptoException

public static final short ILLEGAL_USE 5

public static final short ILLEGAL_VALUE 1

public static final short INVALID_INIT 4

public static final short NO_SUCH_ALGORITHM 3

public static final short UNINITIALIZED_KEY 2

javacardx.biometry.*

javacardx.biometry.BioException

public static final short ILLEGAL_USE 5

public static final short ILLEGAL_VALUE 1

public static final short INVALID_DATA 2

public static final short NO_SUCH_BIO_TEMPLATE 3

public static final short NO_TEMPLATES_ENROLLED 4

javacardx.external.*

javacardx.external.ExternalException

public static final short INTERNAL_ERROR 3

Page 131: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

public static final short INVALID_PARAM 2

public static final short NO_SUCH_SUBSYSTEM 1

javacardx.framework.*

javacardx.framework.tlv.TLVException

public static final short EMPTY_TAG 3

public static final short EMPTY_TLV 4

public static final short ILLEGAL_SIZE 2

public static final short INSUFFICIENT_STORAGE 7

public static final short INVALID_PARAM 1

public static final short MALFORMED_TAG 5

public static final short MALFORMED_TLV 6

public static final short TAG_NUMBER_GREATER_THAN_32767 9

public static final short TAG_SIZE_GREATER_THAN_127 8

public static final short TLV_LENGTH_GREATER_THAN_32767 11

public static final short TLV_SIZE_GREATER_THAN_32767 10

javacardx.framework.util.UtilException

public static final short ILLEGAL_VALUE 1

public static final short TYPE_MISMATCHED 2

Overview Package Class Tree Deprecated Index Help

PREV NEXT FRAMES NO FRAMES All Classes

Page 132: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

com.sun.javacard.rmiclientlib Class JCRMIConnect

java.lang.Object

com.sun.javacard.rmiclientlib.JCRMIConnect

public class JCRMIConnect

extends java.lang.Object

The main class of the Java Card RMI client API. Provides functionality to select a card applet and to obtain an initial reference.

Field Summaryprotected

byteformat Format of the remote references.

static byte REF_WITH_CLASS_NAME Constant used as the 2nd parameter to selectApplet method.

static byte REF_WITH_INTERFACE_NAMES Constant used as the 2nd parameter to selectApplet method.

protected byte[]

selectResponse Response to the SELECT command is stored in this field.

Constructor SummaryJCRMIConnect(CardAccessor ca) Creates a new instance of JCRMIConnect

Page 133: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Method Summary java.rmi.

Remote

getInitialReference() Parses the R-APDU which was returned during selecting an applet, returns a reference to an initial remote object

byte[]

selectApplet(byte[] aid, byte format) Selects an applet, requesting initial reference in the format specified by the 2nd parameter.

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

selectResponse

protected byte[] selectResponse

Response to the SELECT command is stored in this field.

format

protected byte format

Format of the remote references.

REF_WITH_CLASS_NAME

public static final byte REF_WITH_CLASS_NAME

Constant used as the 2nd parameter to selectApplet method.

Page 134: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

See Also:Constant Field Values

REF_WITH_INTERFACE_NAMES

public static final byte REF_WITH_INTERFACE_NAMES

Constant used as the 2nd parameter to selectApplet method.

See Also:Constant Field Values

Constructor Detail

JCRMIConnect

public JCRMIConnect(CardAccessor ca)

Creates a new instance of JCRMIConnect

Parameters:ca - Implementaion of a CardAccessor

Method Detail

getInitialReference

public java.rmi.Remote getInitialReference() throws java.lang.Exception

Parses the R-APDU which was returned during selecting an applet, returns a reference to an initial remote object

Returns:Stub or proxy for the initial remote object

Throws:

Page 135: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

java.lang.Exception - If a problem occured

selectApplet

public byte[] selectApplet(byte[] aid, byte format) throws java.lang.Exception

Selects an applet, requesting initial reference in the format specified by the 2nd parameter. The R-APDU is returned and also stored internally for further processing by the getInitialReference() method.

Parameters:aid - AID of the applet to be selectedformat - Format of the remote references

Returns:R-APDU

Throws: java.lang.Exception - If a problem occured

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Page 136: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

com.sun.javacard.rmiclientlib Class JCRemoteRefImpl

java.lang.Object

com.sun.javacard.rmiclientlib.JCRemoteRefImpl

All Implemented Interfaces: java.io.Externalizable, java.lang.reflect.InvocationHandler, java.rmi.server.RemoteRef

public class JCRemoteRefImpl

extends java.lang.Objectimplements java.rmi.server.RemoteRef, java.lang.reflect.InvocationHandler

Represents a reference to a card object. This class is a Java Card RMI implementation of the RemoteRef interface. It is used in conjunction with Java RMIC generated stubs or dynamically generated proxies for Java Card RMI method invocations.

See Also:

Field Summary

Fields inherited from interface java.rmi.server.RemoteRef

packagePrefix

Constructor Summary

Page 137: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

JCRemoteRefImpl(short objID, java.lang.String a_string,

CardAccessor ca, CardObjectFactory cOF) Creates new JCRemoteRefImpl

Method Summary void done(java.rmi.server.RemoteCall remoteCall)

Deprecated.

java.lang.

String

getRefClass(java.io.ObjectOutput objectOutput) Unsupported operation.

java.lang.

Object

invoke(java.lang.Object obj, java.lang.reflect.

Method method, java.lang.Object[] params) This method is used by dynamically generated proxies.

void invoke(java.rmi.server.RemoteCall remoteCall) Deprecated.

java.lang.

Object

invoke(java.rmi.Remote remote, java.lang.reflect.

Method method, java.lang.Object[] params, long unused) This method is used by rmic-generated stubs.

java.rmi.server.

RemoteCall

newCall(java.rmi.server.RemoteObject remoteObject, java.

rmi.server.Operation[] operation, int param, long param3) Deprecated.

void readExternal(java.io.ObjectInput objectInput) Unsupported operation.

boolean remoteEquals(java.rmi.server.RemoteRef remoteRef) Compares two remote objects for being identical.

int remoteHashCode() Unsupported operation.

java.lang.

String

remoteToString() String representation of remote object.

void writeExternal(java.io.ObjectOutput objectOutput) Unsupported operation.

Methods inherited from class java.lang.Object

Page 138: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

JCRemoteRefImpl

public JCRemoteRefImpl(short objID, java.lang.String a_string, CardAccessor ca,

CardObjectFactory cOF)

Creates new JCRemoteRefImpl

Parameters:objID - 2 byte Object ID from card remote reference descriptora_string - Anticollision string for the class of the remote objectcA - CardAccessorcOF - CardObjectFactory

Method Detail

getRefClass

public java.lang.String getRefClass(java.io.ObjectOutput objectOutput)

Unsupported operation.

Specified by:getRefClass in interface java.rmi.server.RemoteRef

Parameters:objectOutput -

invoke

Page 139: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

public java.lang.Object invoke(java.rmi.Remote remote, java.lang.reflect.Method method, java.lang.Object[] params, long unused) throws java.io.IOException, java.rmi.RemoteException, java.lang.Exception

This method is used by rmic-generated stubs.

Specified by:invoke in interface java.rmi.server.RemoteRef

Parameters:remote - Reference to the stub - not used.method - java.reflect.Method object containing information about the method to be invoked.params - Array of parameters. Primitives are wrapped.unused - rmic-generated hash of the method. Not used.

Returns:The result returned from the card.

Throws: java.io.IOException - If a communication error occured. java.rmi.RemoteException - If an RMI error occured. java.lang.Exception - Exception corresponding to the one that was thrown on the card.

remoteHashCode

public int remoteHashCode()

Unsupported operation.

Specified by:remoteHashCode in interface java.rmi.server.RemoteRef

Returns:A number which is the same for all objects.

Page 140: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

remoteToString

public java.lang.String remoteToString()

String representation of remote object.

Specified by:remoteToString in interface java.rmi.server.RemoteRef

Returns:A String representation of the remote object.

readExternal

public void readExternal(java.io.ObjectInput objectInput) throws java.io.IOException, java.lang.ClassNotFoundException

Unsupported operation.

Specified by:readExternal in interface java.io.Externalizable

Parameters:objectInput -

Throws: java.io.IOException java.lang.ClassNotFoundException

writeExternal

public void writeExternal(java.io.ObjectOutput objectOutput) throws java.io.IOException

Unsupported operation.

Specified by:writeExternal in interface java.io.Externalizable

Parameters:

Page 141: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

objectOutput - Throws:

java.io.IOException

newCall

public java.rmi.server.RemoteCall newCall(java.rmi.server.RemoteObject remoteObject, java.rmi.server.Operation[] operation, int param, long param3) throws java.rmi.RemoteException

Deprecated.

Deprecated and not implemented

Specified by:newCall in interface java.rmi.server.RemoteRef

Parameters:remoteObject - operation - param - param3 -

Throws: java.rmi.RemoteException

invoke

public void invoke(java.rmi.server.RemoteCall remoteCall) throws java.lang.Exception

Deprecated.

Deprecated and not implemented

Page 142: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Specified by:invoke in interface java.rmi.server.RemoteRef

Parameters:remoteCall -

Throws: java.lang.Exception

remoteEquals

public boolean remoteEquals(java.rmi.server.RemoteRef remoteRef)

Compares two remote objects for being identical.

Specified by:remoteEquals in interface java.rmi.server.RemoteRef

Parameters:remoteRef - RemoteRef to the other remote object.

Returns:true if corresponding remote objects are identical.

done

public void done(java.rmi.server.RemoteCall remoteCall) throws java.rmi.RemoteException

Deprecated.

Deprecated and not implemented

Specified by:done in interface java.rmi.server.RemoteRef

Parameters:remoteCall -

Throws: java.rmi.RemoteException

Page 143: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

invoke

public java.lang.Object invoke(java.lang.Object obj, java.lang.reflect.Method method, java.lang.Object[] params) throws java.io.IOException, java.rmi.RemoteException, java.lang.Throwable

This method is used by dynamically generated proxies.

Specified by:invoke in interface java.lang.reflect.InvocationHandler

Parameters:obj - The reference to the Proxy - not used.method - Method object containing information about the method.params - Array of parameters for the method.

Returns:The result returned from the card.

Throws: java.io.IOException - If a communication error occured. java.rmi.RemoteException - If an RMI error occured. java.lang.Throwable - Exception corresponding to the one that was thrown on the card.

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Page 144: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

com.sun.javacard.rmiclientlib Class JCCardProxyFactory

java.lang.Object

com.sun.javacard.javax.smartcard.rmiclient.CardObjectFactory

com.sun.javacard.rmiclientlib.JCCardProxyFactory

public class JCCardProxyFactory

extends CardObjectFactory

Processes the data returned from the card in the format defined for Java Card RMI. Object references must contain lists of interface names. Extends CardObjectFactory.

Field Summary

Fields inherited from class com.sun.javacard.javax.smartcard.rmiclient.CardObjectFactory

REF_FORMAT_CLASS, REF_FORMAT_INTERFACES, REF_FORMAT_NONE

Constructor SummaryJCCardProxyFactory() Constructor for the factory.

Method Summary

Page 145: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

protected java.rmi.

Remote

getRemoteObject(byte[] buffer, int tagOffset,

CardAccessor cardAccessor) Creates the stub instance for object reference returned from the card, assuming the card returned a reference with list of interface names.

byte getRemoteRefFormat() Returns constant REF_FORMAT_INTERFACES defined in class CardObjectFactory.

Methods inherited from class com.sun.javacard.javax.smartcard.rmiclient.CardObjectFactory

getINSByte, getObject, setINSByte

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

JCCardProxyFactory

public JCCardProxyFactory()

Constructor for the factory.

Method Detail

getRemoteRefFormat

public byte getRemoteRefFormat()

Returns constant REF_FORMAT_INTERFACES defined in class CardObjectFactory.

Specified by:getRemoteRefFormat in class CardObjectFactory

Returns:

Page 146: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

The format constant.

getRemoteObject

protected java.rmi.Remote getRemoteObject(byte[] buffer, int tagOffset, CardAccessor cardAccessor)

throws java.lang.Exception

Creates the stub instance for object reference returned from the card, assuming the card returned a reference with list of interface names.

Specified by:getRemoteObject in class CardObjectFactory

Parameters:cardAccessor - buffer - APDU buffer.tagOffset - Offset to tag.

Returns:The instance of the proxy.

Throws: java.lang.Exception - Thrown if the proxy instance cannot be instantiated

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Page 147: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

com.sun.javacard.rmiclientlib Class JCCardObjectFactory

java.lang.Object

com.sun.javacard.javax.smartcard.rmiclient.CardObjectFactory

com.sun.javacard.rmiclientlib.JCCardObjectFactory

public class JCCardObjectFactory

extends CardObjectFactory

Processes the data returned from the card in the format defined for Java Card RMI. Object references must contain class names. Extends CardObjectFactory.

Field Summary

Fields inherited from class com.sun.javacard.javax.smartcard.rmiclient.CardObjectFactory

REF_FORMAT_CLASS, REF_FORMAT_INTERFACES, REF_FORMAT_NONE

Constructor SummaryJCCardObjectFactory() The constructor.

Method Summary

Page 148: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

protected java.rmi.

Remote

getRemoteObject(byte[] buffer, int tagOffset,

CardAccessor cardAccessor) Creates the stub instance for object reference returned from the card, assuming the card returned a reference with class name.

byte getRemoteRefFormat() Returns constant REF_FORMAT_CLASS defined in class CardObjectFactory.

Methods inherited from class com.sun.javacard.javax.smartcard.rmiclient.CardObjectFactory

getINSByte, getObject, setINSByte

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

JCCardObjectFactory

public JCCardObjectFactory()

The constructor.

Method Detail

getRemoteObject

protected java.rmi.Remote getRemoteObject(byte[] buffer, int tagOffset, CardAccessor cardAccessor)

throws java.lang.Exception

Creates the stub instance for object reference returned from the card, assuming the card returned a reference with class name.

Page 149: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Specified by:getRemoteObject in class CardObjectFactory

Parameters:cardAccessor - used to instantiate stubs of remote objectsbuffer - APDU buffertagOffset - Offset to tag

Returns:The resulting stub.

Throws: java.lang.Exception - Failed to instantiate a stub

getRemoteRefFormat

public byte getRemoteRefFormat()

Returns constant REF_FORMAT_CLASS defined in class CardObjectFactory.

Specified by:getRemoteRefFormat in class CardObjectFactory

Returns:REF_FORMAT_CLASS value defined above

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Page 150: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

com.sun.javacard.clientlib Interface CardAccessor

All Known Implementing Classes: ApduIOCardAccessor

public interface CardAccessor

The CardAccessor interface represents a generic smartcard communication API. The interface based definition makes it platform and framework independent. This interface is used by Java Card RMI stubs to access the smart card.

Method Summary void closeCard()

This method closes and resets the card

byte[]

exchangeAPDU(byte[] sendData) This method sends the specified data to the smartcard, waits for the response and returns the response in the return data.

Method Detail

exchangeAPDU

byte[] exchangeAPDU(byte[] sendData) throws java.io.IOException

This method sends the specified data to the smartcard, waits for the response and returns the

Page 151: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

response in the return data. The input data is assumed to be formatted for ISO 7816-4 APDU communication as follows : [0] = CLA, [1]= INS, [2] = P1, [3]= P2, [4]=Lc, [4..]= command data. The response data is formatted for ISO 7816-4 APDU communication as follows : [0] = SW1, [1]= SW2, [2..]= response data.

Parameters:sendData - the ISO 7816-4 formatted command APDU data with 5 bytes of header followed by the command data.

Returns:responseData contains the response received from card with the 2 status bytes followed by the response data.

Throws: java.io.IOException - if communication error occurs

closeCard

void closeCard() throws java.lang.Exception

This method closes and resets the card

Throws: java.lang.Exception - Exception with a message about the problem.

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Page 152: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

com.sun.javacard.clientlib Class ApduIOCardAccessor

java.lang.Object

com.sun.javacard.clientlib.ApduIOCardAccessor

All Implemented Interfaces: CardAccessor

public class ApduIOCardAccessor

extends java.lang.Objectimplements CardAccessor

Implementation of CardAccessor using ApduIO library

Field Summaryprotected com.sun.javacard.

apduio.CadClientInterface

cad Reference to underlying ApduIO object.

Constructor SummaryApduIOCardAccessor() Creates a new instance of ApduIOCardAccessor

Method Summary

Page 153: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

void closeCard() Close and powerdown the card.

byte[]

exchangeAPDU(byte[] capdu) Implementation of exchangeAPDU method of CardAccessor interface

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

cad

protected com.sun.javacard.apduio.CadClientInterface cad

Reference to underlying ApduIO object.

Constructor Detail

ApduIOCardAccessor

public ApduIOCardAccessor() throws java.lang.Exception

Creates a new instance of ApduIOCardAccessor

Throws: java.lang.Exception - Thrown is config file jcclient.properties is not found in classpath or communication error happened.

Method Detail

exchangeAPDU

public byte[] exchangeAPDU(byte[] capdu)

Page 154: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

throws java.io.IOException

Implementation of exchangeAPDU method of CardAccessor interface

Specified by:exchangeAPDU in interface CardAccessor

Parameters:capdu - byte array containing C-APDU

Returns:R-APDU in the format described in the javadoc for CardAccessor

Throws: java.io.IOException - In case of I/O error

closeCard

public void closeCard() throws java.lang.Exception

Close and powerdown the card.

Specified by:closeCard in interface CardAccessor

Throws: java.lang.Exception - Thrown if a problem occured

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Page 155: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

javacard.framework.service Class ServiceException

java.lang.Object

java.lang.Throwable

java.lang.Exception

java.lang.RuntimeException

javacard.framework.CardRuntimeException

javacard.framework.service.ServiceException

All Implemented Interfaces:

Direct Known Subclasses: ServiceExceptionSubclass

public class ServiceException

extends CardRuntimeException

ServiceException represents a service framework related exception.

See Also:

Field Summarystatic short CANNOT_ACCESS_IN_COMMAND

This reason code is used to indicate that the command in the APDU object cannot be accessed for input processing.

Page 156: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

static short CANNOT_ACCESS_OUT_COMMAND This reason code is used to indicate that the command in the APDU object cannot be accessed for output processing.

static short COMMAND_DATA_TOO_LONG This reason code is used to indicate that the incoming data for a command in the APDU object does not fit in the APDU buffer.

static short COMMAND_IS_FINISHED This reason code is used to indicate that the command in the APDU object has been completely processed.

static short DISPATCH_TABLE_FULL This reason code is used to indicate that a dispatch table is full

static short ILLEGAL_PARAM This reason code is used to indicate that an input parameter is not allowed.

static short REMOTE_OBJECT_NOT_EXPORTED This reason code is used by RMIService to indicate that the remote method returned an remote object which has not been exported.

Constructor SummaryServiceException(short reason) Constructs a ServiceException.

Method Summarystatic void throwIt(short reason)

Throws an instance of ServiceException with the specified reason.

Methods inherited from class javacard.framework.CardRuntimeException

getReason, setReason

Methods inherited from class java.lang.Throwable

fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Page 157: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail

ILLEGAL_PARAM

public static final short ILLEGAL_PARAM

This reason code is used to indicate that an input parameter is not allowed.

See Also:Constant Field Values

DISPATCH_TABLE_FULL

public static final short DISPATCH_TABLE_FULL

This reason code is used to indicate that a dispatch table is full

See Also:Constant Field Values

COMMAND_DATA_TOO_LONG

public static final short COMMAND_DATA_TOO_LONG

This reason code is used to indicate that the incoming data for a command in the APDU object does not fit in the APDU buffer.

See Also:Constant Field Values

Page 158: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

CANNOT_ACCESS_IN_COMMAND

public static final short CANNOT_ACCESS_IN_COMMAND

This reason code is used to indicate that the command in the APDU object cannot be accessed for input processing.

See Also:Constant Field Values

CANNOT_ACCESS_OUT_COMMAND

public static final short CANNOT_ACCESS_OUT_COMMAND

This reason code is used to indicate that the command in the APDU object cannot be accessed for output processing.

See Also:Constant Field Values

COMMAND_IS_FINISHED

public static final short COMMAND_IS_FINISHED

This reason code is used to indicate that the command in the APDU object has been completely processed.

See Also:Constant Field Values

REMOTE_OBJECT_NOT_EXPORTED

Page 159: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

public static final short REMOTE_OBJECT_NOT_EXPORTED

This reason code is used by RMIService to indicate that the remote method returned an remote object which has not been exported.

See Also:Constant Field Values

Constructor Detail

ServiceException

public ServiceException(short reason)

Constructs a ServiceException.

Parameters:reason - the reason for the exception.

Method Detail

throwIt

public static void throwIt(short reason) throws ServiceException

Throws an instance of ServiceException with the specified reason.

Parameters:reason - the reason for the exception.

Throws: ServiceException - always.

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Page 160: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize
Page 161: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES All Classes

Package javacard.framework.service

Provides Java Card API exceptions that may be re-thrown on the client.

See: Description

Exception SummaryServiceException ServiceException represents a service framework related exception.

Package javacard.framework.service Description

Provides Java Card API exceptions that may be re-thrown on the client.

Overview Package Class Tree Deprecated Index Help

PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES All Classes

Page 162: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV NEXT FRAMES NO FRAMES All Classes

Hierarchy For Package javacard.framework.service

Package Hierarchies:All Packages

Class Hierarchy

java.lang.Object java.lang.Throwable

java.lang.Exception java.lang.RuntimeException

javacard.framework.CardRuntimeException javacard.framework.service.ServiceException

Overview Package Class Tree Deprecated Index Help

PREV NEXT FRAMES NO FRAMES All Classes

Page 163: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV NEXT FRAMES NO FRAMES All Classes

Hierarchy For Package javacard.security

Package Hierarchies:All Packages

Class Hierarchy

java.lang.Object java.lang.Throwable

java.lang.Exception java.lang.RuntimeException

javacard.framework.CardRuntimeException javacard.security.CryptoException

Overview Package Class Tree Deprecated Index Help

PREV NEXT FRAMES NO FRAMES All Classes

Page 164: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES All Classes

Package javacard.security

Provides Java Card API exceptions that may be re-thrown on the client.

See: Description

Exception SummaryCryptoException CryptoException represents a cryptography-related exception.

Package javacard.security Description

Provides Java Card platform exceptions that may be re-thrown on the client.

Overview Package Class Tree Deprecated Index Help

PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES All Classes

Page 165: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES All Classes

Package javacardx.biometry

Provides Java Card API exceptions that may be re-thrown on the client.

See: Description

Exception Summary

BioException The BioException class encapsulates specific exceptions which can be thrown by the methods of the javacardx.biometry package in case of error.

Package javacardx.biometry Description

Extension package that contains functionality for implementing a biometric framework on the Java Card platform. The platform must support this optional package only if biometry support is included in the implementation.

The javacardx.biometry package contains classes and interfaces which can be used to build a biometric server application. These classes also enable a client application on the card to obtain biometric services from the biometric server application.

Overview Package Class Tree Deprecated Index Help

PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES All Classes

Page 166: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV NEXT FRAMES NO FRAMES All Classes

Hierarchy For Package javacardx.biometry

Package Hierarchies:All Packages

Class Hierarchy

java.lang.Object java.lang.Throwable

java.lang.Exception java.lang.RuntimeException

javacard.framework.CardRuntimeException javacardx.biometry.BioException

Overview Package Class Tree Deprecated Index Help

PREV NEXT FRAMES NO FRAMES All Classes

Page 167: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV NEXT FRAMES NO FRAMES All Classes

Hierarchy For Package javacardx.external

Package Hierarchies:All Packages

Class Hierarchy

java.lang.Object java.lang.Throwable

java.lang.Exception java.lang.RuntimeException

javacard.framework.CardRuntimeException javacardx.external.ExternalException

Overview Package Class Tree Deprecated Index Help

PREV NEXT FRAMES NO FRAMES All Classes

Page 168: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES All Classes

Package javacardx.external

Provides Java Card API exceptions that may be re-thrown on the client.

See: Description

Exception SummaryExternalException ExternalException represents an external subsystem related exception.

Package javacardx.external Description

Extension package that provides mechanisms to access memory subsystems which are not directly addressable by the Java Card runtime environment (Java Card RE) on the Java Card platform. The platform must support this optional package if an external memory access feature is included in the implementation.

The javacardx.external package contains the Memory class and the MemoryAccess interface. The Memory class provides a factory method for creating an instance of the MemoryAccess interface suitable for accessing supported memory subsystems.

Overview Package Class Tree Deprecated Index Help

PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES All Classes

Page 169: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES All Classes

Package javacardx.framework.tlv

Provides Java Card API exceptions that may be re-thrown on the client.

See: Description

Exception SummaryTLVException TLVException represents a TLV-related exception.

Package javacardx.framework.tlv Description

Extension package that contains functionality, for managing storage for BER TLV formatted data, based on the ASN.1 BER encoding rules of ISO/IEC 8825-1:2002, as well as parsing and editing BER TLV formatted data in I/O buffers.

The javacardx.framework.tlv package contains the BERTag abstract class, and its concrete subclasses PrimitiveBERTag and ConstructedBERTag. These classes encapsulate the BER tag functionality.

The javacardx.framework.tlv package also contains the BERTLV abstract class, and its concrete subclasses PrimitiveBERTLV and ConstructedBERTLV. These classes encapsulate the BER TLV functionality.

Overview Package Class Tree Deprecated Index Help

PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES All Classes

Page 170: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV NEXT FRAMES NO FRAMES All Classes

Hierarchy For Package javacardx.framework.tlv

Package Hierarchies:All Packages

Class Hierarchy

java.lang.Object java.lang.Throwable

java.lang.Exception java.lang.RuntimeException

javacard.framework.CardRuntimeException javacardx.framework.tlv.TLVException

Overview Package Class Tree Deprecated Index Help

PREV NEXT FRAMES NO FRAMES All Classes

Page 171: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV NEXT FRAMES NO FRAMES All Classes

Hierarchy For Package javacardx.framework.util

Package Hierarchies:All Packages

Class Hierarchy

java.lang.Object java.lang.Throwable

java.lang.Exception java.lang.RuntimeException

javacard.framework.CardRuntimeException javacardx.framework.util.UtilException

Overview Package Class Tree Deprecated Index Help

PREV NEXT FRAMES NO FRAMES All Classes

Page 172: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES All Classes

Package javacardx.framework.util

Provides Java Card API exceptions that may be re-thrown on the client.

See: Description

Exception SummaryUtilException UtilException represents a util related exception.

Package javacardx.framework.util Description

Extension package that contains common utility functions for manipulating arrays of primitive components - byte, short or int. If the int primitive type is supported by the platform, the intx sub-package must be included.

The javacardx.framework.util package contains the ArrayLogic class. The ArrayLogic class provides methods for functionality similar to that of the javacard.framework.Util class but with generic Object component equivalents.

Overview Package Class Tree Deprecated Index Help

PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES All Classes

Page 173: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

javacardx.framework.util Class UtilException

java.lang.Object

java.lang.Throwable

java.lang.Exception

java.lang.RuntimeException

javacard.framework.CardRuntimeException

javacardx.framework.util.UtilException

All Implemented Interfaces:

Direct Known Subclasses: UtilExceptionSubclass

public class UtilException

extends CardRuntimeException

UtilException represents a util related exception.

The API classes throw Java Card runtime environment-owned instances of UtilException.

Java Card runtime environment-owned instances of exception classes are temporary Java Card runtime environment Entry Point Objects and can be accessed from any applet context. References to these temporary objects cannot be stored in class variables, instance variables, or array components.

See Also:

Page 174: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Field Summarystatic short ILLEGAL_VALUE

This reason code is used to indicate that one or more input parameters is not the correct type or is out of allowed bounds.

static short TYPE_MISMATCHED This reason code is used to indicate that input parameters are not the same type.

Constructor SummaryUtilException(short reason) Constructs a UtilException with the specified reason.

Method Summarystatic void throwIt(short reason)

Throws the Java Card runtime environment-owned instance of UtilException with the specified reason.

Methods inherited from class javacard.framework.CardRuntimeException

getReason, setReason

Methods inherited from class java.lang.Throwable

fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail

ILLEGAL_VALUE

Page 175: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

public static final short ILLEGAL_VALUE

This reason code is used to indicate that one or more input parameters is not the correct type or is out of allowed bounds.

See Also:Constant Field Values

TYPE_MISMATCHED

public static final short TYPE_MISMATCHED

This reason code is used to indicate that input parameters are not the same type.

See Also:Constant Field Values

Constructor Detail

UtilException

public UtilException(short reason)

Constructs a UtilException with the specified reason. To conserve on resources use throwIt() to use the Java Card runtime environment-owned instance of this class.

Parameters:reason - the reason for the exception

Method Detail

throwIt

public static void throwIt(short reason)

Page 176: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Throws the Java Card runtime environment-owned instance of UtilException with the specified reason.

Java Card runtime environment-owned instances of exception classes are temporary Java Card runtime environment Entry Point Objects and can be accessed from any applet context. References to these temporary objects cannot be stored in class variables or instance variables or array components. See Runtime Environment Specification for the Java Card Platform, section 6.2.1 for details.

Parameters:reason - the reason for the exception

Throws: UtilException - always

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Page 177: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

javacardx.framework.tlv Class TLVException

java.lang.Object

java.lang.Throwable

java.lang.Exception

java.lang.RuntimeException

javacard.framework.CardRuntimeException

javacardx.framework.tlv.TLVException

All Implemented Interfaces:

Direct Known Subclasses: TLVExceptionSubclass

public class TLVException

extends CardRuntimeException

TLVException represents a TLV-related exception.

The API classes throw Java Card runtime environment-owned instances of TLVException.

Java Card runtime environment-owned instances of exception classes are temporary Java Card runtime environment Entry Point Objects and can be accessed from any applet context. References to these temporary objects cannot be stored in class variables, instance variables, or array components.

See Also:

Page 178: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Field Summarystatic short EMPTY_TAG

This reason code is used to indicate that the Tag object is empty

static short EMPTY_TLV This reason code is used to indicate that the TLV object is empty

static short ILLEGAL_SIZE This reason code is used to indicate that the size of a TLV or Tag representation in the input parameter is greater than the supported size or will result in in a TLV struture of greater than supported size

static short INSUFFICIENT_STORAGE This reason code is used to indicate that the configured storage capacity of the object will be exceeded

static short INVALID_PARAM This reason code is used to indicate that one or more input parameters is invalid.

static short MALFORMED_TAG This reason code is used to indicate that the tag representation is not a well-formed BER Tag

static short MALFORMED_TLV This reason code is used to indicate that the TLV representation is not a well-formed BER TLV

static short TAG_NUMBER_GREATER_THAN_32767 This reason code is used to indicate that the tag number value greater than 32767

static short TAG_SIZE_GREATER_THAN_127 This reason code is used to indicate that the size of the tag representation is greater than 127 bytes

static short TLV_LENGTH_GREATER_THAN_32767 This reason code is used to indicate that the Length component value in the TLV is greater than 32767

static short TLV_SIZE_GREATER_THAN_32767 This reason code is used to indicate that the TLV requires more that 32767 bytes to represent

Page 179: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Constructor SummaryTLVException(short reason) Constructs a TLVException with the specified reason.

Method Summarystatic void throwIt(short reason)

Throws the Java Card runtime environment-owned instance of TLVException with the specified reason.

Methods inherited from class javacard.framework.CardRuntimeException

getReason, setReason

Methods inherited from class java.lang.Throwable

fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail

INVALID_PARAM

public static final short INVALID_PARAM

This reason code is used to indicate that one or more input parameters is invalid.

See Also:Constant Field Values

Page 180: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

ILLEGAL_SIZE

public static final short ILLEGAL_SIZE

This reason code is used to indicate that the size of a TLV or Tag representation in the input parameter is greater than the supported size or will result in in a TLV struture of greater than supported size

See Also:Constant Field Values

EMPTY_TAG

public static final short EMPTY_TAG

This reason code is used to indicate that the Tag object is empty

See Also:Constant Field Values

EMPTY_TLV

public static final short EMPTY_TLV

This reason code is used to indicate that the TLV object is empty

See Also:Constant Field Values

MALFORMED_TAG

public static final short MALFORMED_TAG

Page 181: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

This reason code is used to indicate that the tag representation is not a well-formed BER Tag

See Also:Constant Field Values

MALFORMED_TLV

public static final short MALFORMED_TLV

This reason code is used to indicate that the TLV representation is not a well-formed BER TLV

See Also:Constant Field Values

INSUFFICIENT_STORAGE

public static final short INSUFFICIENT_STORAGE

This reason code is used to indicate that the configured storage capacity of the object will be exceeded

See Also:Constant Field Values

TAG_SIZE_GREATER_THAN_127

public static final short TAG_SIZE_GREATER_THAN_127

This reason code is used to indicate that the size of the tag representation is greater than 127 bytes

See Also:Constant Field Values

Page 182: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

TAG_NUMBER_GREATER_THAN_32767

public static final short TAG_NUMBER_GREATER_THAN_32767

This reason code is used to indicate that the tag number value greater than 32767

See Also:Constant Field Values

TLV_SIZE_GREATER_THAN_32767

public static final short TLV_SIZE_GREATER_THAN_32767

This reason code is used to indicate that the TLV requires more that 32767 bytes to represent

See Also:Constant Field Values

TLV_LENGTH_GREATER_THAN_32767

public static final short TLV_LENGTH_GREATER_THAN_32767

This reason code is used to indicate that the Length component value in the TLV is greater than 32767

See Also:Constant Field Values

Constructor Detail

TLVException

public TLVException(short reason)

Page 183: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Constructs a TLVException with the specified reason. To conserve on resources use throwIt() to use the Java Card runtime environment-owned instance of this class.

Parameters:reason - the reason for the exception

Method Detail

throwIt

public static void throwIt(short reason)

Throws the Java Card runtime environment-owned instance of TLVException with the specified reason.

Java Card runtime environment-owned instances of exception classes are temporary Java Card runtime environment Entry Point Objects and can be accessed from any applet context. References to these temporary objects cannot be stored in class variables or instance variables or array components. See Runtime Environment Specification for the Java Card Platform, section 6.2.1 for details.

Parameters:reason - the reason for the exception

Throws: TLVException - always

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Page 184: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

javacardx.external Class ExternalException

java.lang.Object

java.lang.Throwable

java.lang.Exception

java.lang.RuntimeException

javacard.framework.CardRuntimeException

javacardx.external.ExternalException

All Implemented Interfaces:

Direct Known Subclasses: ExternalExceptionSubclass

public class ExternalException

extends CardRuntimeException

ExternalException represents an external subsystem related exception.

The API classes throw Java Card runtime environment-owned instances of ExternalException.

Java Card runtime environment-owned instances of exception classes are temporary Java Card runtime environment Entry Point Objects and can be accessed from any applet context. References to these temporary objects cannot be stored in class variables or instance variables or array components.

Since:2.2.2

See Also:

Page 185: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Field Summarystatic short INTERNAL_ERROR

This reason code is used to indicate that an unrecoverable external access error occurred.

static short INVALID_PARAM This reason code is used to indicate that an input parameter is invalid.

static short NO_SUCH_SUBSYSTEM This reason code is used to indicate that specified external subsystem is not available.

Constructor SummaryExternalException(short reason) Constructs a ExternalException with the specified reason.

Method Summarystatic void throwIt(short reason)

Throws the Java Card runtime environment-owned instance of ExternalException with the specified reason.

Methods inherited from class javacard.framework.CardRuntimeException

getReason, setReason

Methods inherited from class java.lang.Throwable

fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Page 186: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Field Detail

NO_SUCH_SUBSYSTEM

public static final short NO_SUCH_SUBSYSTEM

This reason code is used to indicate that specified external subsystem is not available.

See Also:Constant Field Values

INVALID_PARAM

public static final short INVALID_PARAM

This reason code is used to indicate that an input parameter is invalid.

See Also:Constant Field Values

INTERNAL_ERROR

public static final short INTERNAL_ERROR

This reason code is used to indicate that an unrecoverable external access error occurred.

See Also:Constant Field Values

Constructor Detail

ExternalException

public ExternalException(short reason)

Page 187: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Constructs a ExternalException with the specified reason. To conserve on resources use throwIt() to use the Java Card runtime environment-owned instance of this class.

Parameters:reason - the reason for the exception

Method Detail

throwIt

public static void throwIt(short reason)

Throws the Java Card runtime environment-owned instance of ExternalException with the specified reason.

Java Card runtime environment-owned instances of exception classes are temporary Java Card runtime environment Entry Point Objects and can be accessed from any applet context. References to these temporary objects cannot be stored in class variables or instance variables or array components. See Runtime Environment Specification for the Java Card Platform, section 6.2.1 for details.

Parameters:reason - the reason for the exception

Throws: ExternalException - always

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Page 188: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

javacardx.biometry Class BioException

java.lang.Object

java.lang.Throwable

java.lang.Exception

java.lang.RuntimeException

javacard.framework.CardRuntimeException

javacardx.biometry.BioException

All Implemented Interfaces:

Direct Known Subclasses: BioExceptionSubclass

public class BioException

extends CardRuntimeException

The BioException class encapsulates specific exceptions which can be thrown by the methods of the javacardx.biometry package in case of error.

See Also:

Field Summarystatic short ILLEGAL_USE

This reason code is used to indicate that the method should not be invoked based on the current state of the card.

Page 189: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

static short ILLEGAL_VALUE This reason code is used to indicate that one or more input parameters is out of allowed bounds.

static short INVALID_DATA This reason code is used to indicate that the data the system encountered is illegible.

static short NO_SUCH_BIO_TEMPLATE This reason code is used to indicate that the provided bio template type is not supported by the template builder.

static short NO_TEMPLATES_ENROLLED This reason code is used to indicate that no reference template is available for matching, or that the reference template is uninitialized.

Constructor SummaryBioException(short reason) Construct a new biometric exception using a provided reason code.

Method Summarystatic void throwIt(short reason)

Throws the Java Card runtime environment owned instance of BioException with the specified reason.

Methods inherited from class javacard.framework.CardRuntimeException

getReason, setReason

Methods inherited from class java.lang.Throwable

fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Page 190: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Field Detail

ILLEGAL_VALUE

public static final short ILLEGAL_VALUE

This reason code is used to indicate that one or more input parameters is out of allowed bounds.

See Also:Constant Field Values

INVALID_DATA

public static final short INVALID_DATA

This reason code is used to indicate that the data the system encountered is illegible.

See Also:Constant Field Values

NO_SUCH_BIO_TEMPLATE

public static final short NO_SUCH_BIO_TEMPLATE

This reason code is used to indicate that the provided bio template type is not supported by the template builder.

See Also:Constant Field Values

NO_TEMPLATES_ENROLLED

Page 191: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

public static final short NO_TEMPLATES_ENROLLED

This reason code is used to indicate that no reference template is available for matching, or that the reference template is uninitialized.

See Also:Constant Field Values

ILLEGAL_USE

public static final short ILLEGAL_USE

This reason code is used to indicate that the method should not be invoked based on the current state of the card.

See Also:Constant Field Values

Constructor Detail

BioException

public BioException(short reason)

Construct a new biometric exception using a provided reason code. To conserve on resources use throwIt() to use the Java Card runtime environment instance of this class.

Parameters:reason - the reason code for this exception.

Method Detail

throwIt

public static void throwIt(short reason) throws BioException

Page 192: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Throws the Java Card runtime environment owned instance of BioException with the specified reason. Java Card runtime environment owned instances of exception classes are temporary Java Card runtime environment Entry Point Objects and can be accessed from any applet context. References to these objects cannot be stored in class variables or instance variables or array components.

Parameters:reason - the reason for the exception.

Throws: BioException - always.

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Page 193: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

javacard.security Class CryptoException

java.lang.Object

java.lang.Throwable

java.lang.Exception

java.lang.RuntimeException

javacard.framework.CardRuntimeException

javacard.security.CryptoException

All Implemented Interfaces:

Direct Known Subclasses: CryptoExceptionSubclass

public class CryptoException

extends CardRuntimeException

CryptoException represents a cryptography-related exception.

See Also:

Field Summarystatic short ILLEGAL_USE

This reason code is used to indicate that the signature or cipher algorithm does not pad the incoming message and the input message is not block aligned.

Page 194: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

static short ILLEGAL_VALUE This reason code is used to indicate that one or more input parameters is out of allowed bounds.

static short INVALID_INIT This reason code is used to indicate that the signature or cipher object has not been correctly initialized for the requested operation.

static short NO_SUCH_ALGORITHM This reason code is used to indicate that the requested algorithm or key type is not supported.

static short UNINITIALIZED_KEY This reason code is used to indicate that the key is uninitialized.

Constructor SummaryCryptoException(short reason) Constructs a CryptoException with the specified reason.

Method Summarystatic void throwIt(short reason)

Throws an instance of CryptoException with the specified reason.

Methods inherited from class javacard.framework.CardRuntimeException

getReason, setReason

Methods inherited from class java.lang.Throwable

fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Page 195: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Field Detail

ILLEGAL_VALUE

public static final short ILLEGAL_VALUE

This reason code is used to indicate that one or more input parameters is out of allowed bounds.

See Also:Constant Field Values

UNINITIALIZED_KEY

public static final short UNINITIALIZED_KEY

This reason code is used to indicate that the key is uninitialized.

See Also:Constant Field Values

NO_SUCH_ALGORITHM

public static final short NO_SUCH_ALGORITHM

This reason code is used to indicate that the requested algorithm or key type is not supported.

See Also:Constant Field Values

INVALID_INIT

public static final short INVALID_INIT

Page 196: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

This reason code is used to indicate that the signature or cipher object has not been correctly initialized for the requested operation.

See Also:Constant Field Values

ILLEGAL_USE

public static final short ILLEGAL_USE

This reason code is used to indicate that the signature or cipher algorithm does not pad the incoming message and the input message is not block aligned.

See Also:Constant Field Values

Constructor Detail

CryptoException

public CryptoException(short reason)

Constructs a CryptoException with the specified reason. To conserve on resources use throwIt() to use the JCRE owned instance of this class.

Parameters:reason - the reason for the exception.

Method Detail

throwIt

public static void throwIt(short reason)

Throws an instance of CryptoException with the specified reason.

Page 197: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

Parameters:reason - the reason for the exception.

Throws: CryptoException - always.

Overview Package Class Tree Deprecated Index Help

PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Page 198: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

com.sun.javacard.clientlib

Interfaces CardAccessor

Classes ApduIOCardAccessor

Page 199: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

com.sun.javacard.javax.smartcard.rmiclient

Classes CardObjectFactory

Exceptions APDUExceptionSubclass BioExceptionSubclass CardExceptionSubclass CardRuntimeExceptionSubclass CryptoExceptionSubclass ExternalExceptionSubclass ISOExceptionSubclass PINExceptionSubclass ServiceExceptionSubclass SystemExceptionSubclass TLVExceptionSubclass TransactionExceptionSubclass UserExceptionSubclass UtilExceptionSubclass

Page 200: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

com.sun.javacard.rmiclientlib

Classes JCCardObjectFactory JCCardProxyFactory JCRemoteRefImpl JCRMIConnect

Page 201: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

javacard.framework

Exceptions APDUException CardException CardRuntimeException ISOException PINException SystemException TransactionException UserException

Page 202: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

javacard.framework.service

Exceptions ServiceException

Page 203: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

javacard.security

Exceptions CryptoException

Page 204: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

javacardx.biometry

Exceptions BioException

Page 205: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

javacardx.external

Exceptions ExternalException

Page 206: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

javacardx.framework.tlv

Exceptions TLVException

Page 207: RMI Client Application Programming Interface · 2 RMI Client Application Programming Interface, Java Card Platform, Version 2.2.2 • March 2006 Allows the client application to customize

javacardx.framework.util

Exceptions UtilException