demos.stockbroker
Class SignatureCard
java.lang.Object
|
+--demos.stockbroker.SignatureCard
- public class SignatureCard
- extends java.lang.Object
- implements CTListener
This class encapsulates all Card related functionality required by the
InternetBroker Demo. Only this class uses the OpenCardFramework.
- Version:
- $Id: SignatureCard.java,v 1.1 1999/12/03 09:34:43 damke Exp $
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
cardRemoved
public void cardRemoved(CardTerminalEvent ctEvent)
- React on card removed events sent by OCF: Invalidate card and card service
- Specified by:
- cardRemoved in interface CTListener
- Parameters:
ctEvent - The card inserted event.
cardInserted
public void cardInserted(CardTerminalEvent ctEvent)
- React on card inserted events sent by OCF: Get new card and card service
- Specified by:
- cardInserted in interface CTListener
- Parameters:
ctEvent - The card inserted event.
signatureCardPresent
public boolean signatureCardPresent()
- Check presence of a signature card.
- Returns:
- true, if a signature card is present in a slot, false otherwise
cardPresent
public boolean cardPresent()
- Check presence of an (eventually uninitialized) smart card.
- Returns:
- true, if a smart card is present in a slot, false otherwise
getCardHolderData
public byte[] getCardHolderData()
- Get the card holder data from the SmartCard.
- Returns:
- The card holder data read from the card.
writeCardHolderData
public boolean writeCardHolderData(java.lang.String cardHolderData)
- Write the given card holder data to the SmartCard.
- Parameters:
cardHolderData - - data to be written to the card
initialize
public boolean initialize()
- Initialize a smart card with the demo image.
- Returns:
- true on success, false on failure.
|