Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## opencard.opt.service
Interface CardServiceInterface

All Known Subinterfaces:
  AppletAccessCardService, AppletManagerCardService, AutCardService, CHVCardService, CHVCardServiceWithControl, DatabaseCardService, EMVAppletAccessCardService, FileAccessCardService, FileSystemCardService, IsoFileSystemCardService, KeyGenerationCardService, KeyImportCardService, SignatureCardService

All Known Implementing Classes:
  AbstractAppletAccessor, ACOSCardService, BasicDatabase, BasicEMVAppletAccess, GemXCosCardService, IsoCardService, ISSSSignatureService

    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.

Version:
  $Id: CardServiceInterface.java,v 1.2 1999/11/03 12:37:18 damke Exp $
Author:
  Roland Weber (rolweber@de.ibm.com)
See Also:
  `CardService`, `CardService.getCHVDialog()`

Method Summary
`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()`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD