Example #1
0
 /** Closes this service. */
 public void close() {
   try {
     wrapper = null;
     super.close();
   } finally {
     state = SESSION_STOPPED_STATE;
   }
 }
Example #2
0
 /**
  * Opens a session to the card. As of 0.4.10 this no longer auto selects the passport application,
  * caller is responsible to call #sendSelectApplet(boolean) now.
  *
  * @throws CardServiceException on error
  */
 public void open() throws CardServiceException {
   if (isOpen()) {
     return;
   }
   synchronized (this) {
     super.open();
     state = SESSION_STARTED_STATE;
   }
 }