Class RemoteClientCardService
- java.lang.Object
-
- opencard.core.service.CardService
-
- de.cardcontact.opencard.service.remoteclient.RemoteClientCardService
-
- All Implemented Interfaces:
RemoteUpdateService,APDUInterface
public class RemoteClientCardService extends CardService implements RemoteUpdateService, APDUInterface
This client establish a connection to a remote administration server and obtains command APDUs that will be transfered to the card. The card's response will be send back to the server. The APDUs are encoded according to RAMoverHTTP- Author:
- lew
-
-
Constructor Summary
Constructors Constructor Description RemoteClientCardService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancel()Cancel pending requestResponseAPDUsendCommandAPDU(CommandAPDU command)Send command APDU and obtain response APDU from the card.voidsetHttpURLConnectionFactory(HttpURLConnectionFactory factory)Set an HttpURLConnectionFactory which creates preconfigured HttpURLConnectionsvoidupdate(java.lang.String serverURL, java.lang.String sessionId, RemoteNotificationListener notificationListener)Update the card by obtaining command APDUs from a remote administration server.-
Methods inherited from class opencard.core.service.CardService
allocateCardChannel, getCard, getCardChannel, getCHVDialog, initialize, releaseCardChannel, setCardChannel, setCHVDialog
-
-
-
-
Method Detail
-
sendCommandAPDU
public ResponseAPDU sendCommandAPDU(CommandAPDU command) throws CardTerminalException, CardServiceException
Description copied from interface:APDUInterfaceSend command APDU and obtain response APDU from the card.- Specified by:
sendCommandAPDUin interfaceAPDUInterface- Parameters:
command- the command APDU- Returns:
- the response APDU
- Throws:
CardTerminalExceptionCardServiceException
-
update
public void update(java.lang.String serverURL, java.lang.String sessionId, RemoteNotificationListener notificationListener) throws CardServiceExceptionDescription copied from interface:RemoteUpdateServiceUpdate the card by obtaining command APDUs from a remote administration server.- Specified by:
updatein interfaceRemoteUpdateService- Parameters:
serverURL- the url of the remote administration serversessionId- the session Id to be included as JSESSION cookie or nullnotificationListener- the listener receiving notifications from the server or null- Throws:
CardServiceException
-
cancel
public void cancel()
Description copied from interface:RemoteUpdateServiceCancel pending request- Specified by:
cancelin interfaceRemoteUpdateService
-
setHttpURLConnectionFactory
public void setHttpURLConnectionFactory(HttpURLConnectionFactory factory)
Description copied from interface:RemoteUpdateServiceSet an HttpURLConnectionFactory which creates preconfigured HttpURLConnections- Specified by:
setHttpURLConnectionFactoryin interfaceRemoteUpdateService
-
-