Class ISOAppletSelector

  • All Implemented Interfaces:
    AppletSelector

    public class ISOAppletSelector
    extends java.lang.Object
    implements AppletSelector
    The ISOAppletSelector is a class providing the selectApplet functionality as specified in the AppletSelector interface. It uses the SELECT FILE command as requested by ISO7816-5 and standardized by ISO7816-4 norms. It is a helper class, not a regular CardService, as it will always use a CardChannel provided by client CardServices.
    Since:
    OCF1.2
    Author:
    Christophe.Muller@research.gemplus.com
    See Also:
    AppletSelector
    • Constructor Detail

      • ISOAppletSelector

        public ISOAppletSelector()
        Instantiate a ISOAppletSelector object.
    • Method Detail

      • selectApplet

        public AppletInfo selectApplet​(CardChannel channel,
                                       AppletID appletID)
                                throws CardTerminalException,
                                       CardServiceException
        Selects a Card Applet with the specified Application Identifier in the Card.

        Sends the ISO 7816-5 SELECT card command (equal to the ISO 7816-4 SELECT FILE command). If this command succeeds (response=OK), returns an AppletInfo with the applet AID and the obtained ResponseAPDU stored in the "data" field.

        Specified by:
        selectApplet in interface AppletSelector
        Parameters:
        channel - the card channel to be used during this operation.
        appletID - the card applet application identifier to select.
        Returns:
        applet info
        an AppletInfo object with the information that has been provided by the card (or at the minimum an AppletInfo object including the Applet AID). A ResponseAPDU object can be stored in the "data" attribute of the returned AppletInfo in order to provide more detailed information to the caller.
        Throws:
        CardTerminalException - Thrown when error occurs during the communication.
        CardServiceException - Thrown when error occurs during execution of the operation.