Class CardState


  • public class CardState
    extends java.lang.Object
    Encapsulates the state of a multi-applicative card. All instances of the class BasicAppletCardService associated with the same physical card share a common state object to ensure a consistent view.
    Since:
    OCF1.2
    Author:
    Thomas Schaeck (schaeck@de.ibm.com), Frank Seliger (seliger@de.ibm.com, Christophe.Muller@research.gemplus.com
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected AppletID selectedAppletID_
      The application identifier of the currently selected applet.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected CardState()
      Create a JavaCard state object.
    • Field Detail

      • selectedAppletID_

        protected AppletID selectedAppletID_
        The application identifier of the currently selected applet.
    • Constructor Detail

      • CardState

        protected CardState()
        Create a JavaCard state object.
    • Method Detail

      • getSelectedAppletID

        public AppletID getSelectedAppletID()
        Gets the Application Identifier of the currently selected Applet.
        Returns:
        application ID of selected Applet
      • setSelectedAppletID

        public AppletID setSelectedAppletID​(AppletID newAppletID)
        Sets the Application Identifier of the currently selected card applet.
        Parameters:
        newAppletID - application ID of new selected card applet.
        Returns:
        The applet ID of the previously selected applet.