Package opencard.opt.service
Interface CardServiceInterface
-
- All Known Subinterfaces:
CHVCardService
,CHVCardServiceWithControl
,CHVManagementCardService
,FileAccessCardService
,FileSystemCardService
,IsoFileSystemCardService
,KeyGenerationCardService
,KeyGenerationCardServiceWithSpec
,SignatureCardService
- All Known Implementing Classes:
IsoCardService
,SmartCardHSMCardService
public interface CardServiceInterface
An interface to the public methods in CardService. The optional parts of OCF define interfaces to standard card services, for example for file access. Since interfaces cannot extend classes, this interface provides access to the public methods in class SmartCard. It will be extended by the standard service interfaces.
Without this interface, applications would have to downcast from a particular interface to class CardService in order to access these methods. The exception to this rule is the method getCHVDialog, which is not intended to be invoked by an application.- Author:
- Roland Weber (rolweber@de.ibm.com)
- See Also:
CardService
,CardService.getCHVDialog()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SmartCard
getCard()
Returns the corresponding smartcard object.void
setCHVDialog(CHVDialog dialog)
Provides an application-specific dialog for CHV input.
-
-
-
Method Detail
-
setCHVDialog
void setCHVDialog(CHVDialog dialog)
Provides an application-specific dialog for CHV input. If an application does not set it's own dialog, a default dialog will be used if password input is required.- Parameters:
dialog
- the dialog to use for querying a password or PIN- See Also:
CardService.setCHVDialog(opencard.core.service.CHVDialog)
-
getCard
SmartCard getCard()
Returns the corresponding smartcard object. Every service has been created using a particular instance of SmartCard. This method can be used to obtain the instance of SmartCard that has been used to create the service for which it is invoked.- Returns:
- the smartcard object associated with this service
- See Also:
CardService.getCard()
-
-