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 void
cancel()
Cancel pending requestResponseAPDU
sendCommandAPDU(CommandAPDU command)
Send command APDU and obtain response APDU from the card.void
setHttpURLConnectionFactory(HttpURLConnectionFactory factory)
Set an HttpURLConnectionFactory which creates preconfigured HttpURLConnectionsvoid
update(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:APDUInterface
Send command APDU and obtain response APDU from the card.- Specified by:
sendCommandAPDU
in interfaceAPDUInterface
- Parameters:
command
- the command APDU- Returns:
- the response APDU
- Throws:
CardTerminalException
CardServiceException
-
update
public void update(java.lang.String serverURL, java.lang.String sessionId, RemoteNotificationListener notificationListener) throws CardServiceException
Description copied from interface:RemoteUpdateService
Update the card by obtaining command APDUs from a remote administration server.- Specified by:
update
in 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:RemoteUpdateService
Cancel pending request- Specified by:
cancel
in interfaceRemoteUpdateService
-
setHttpURLConnectionFactory
public void setHttpURLConnectionFactory(HttpURLConnectionFactory factory)
Description copied from interface:RemoteUpdateService
Set an HttpURLConnectionFactory which creates preconfigured HttpURLConnections- Specified by:
setHttpURLConnectionFactory
in interfaceRemoteUpdateService
-
-