Class 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.
    • 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.
        Specified by:
        getRemoteObject in class CardObjectFactory
        Parameters:
        cardAccessor - used to instantiate stubs of remote objects
        buffer - APDU buffer
        tagOffset - Offset to tag
        Returns:
        The resulting stub.
        Throws:
        java.lang.Exception - Failed to instantiate a stub