Java Card code for the CopyCard
Here you can download the full generated Java Card source code and the full generated terminal code.
You can take a look at the single Java Card classes:
- Copycard.java - the main class that executes the protocol.
- SimpleComm.java - the interface to the JavaCard API. Only line 35 (new Copycard()) is application specific.
- Code.java - this class contains the tags for the encoding and decoding of messages.
- Codeable.java - only classes implementing Codeable can be encoded and decoded.
- Coding.java - the class that does the actual encoding and decoding of messages.
- Store.java - the class that does the 'memory management' and holds the reuseable objects used by the CopyCard.
- Message.java - generated from the class diagram.
- RequestBalance.java - generated from the class diagram.
- ResRequestBalance.java - generated from the class diagram.
- Authenticate.java - generated from the class diagram.
- ResAuthenticate.java - generated from the class diagram.
- Load.java - generated from the class diagram.
- Pay.java - generated from the class diagram.
- ResPay.java - generated from the class diagram.
- AuthData.java - generated from the class diagram.
- State.java - generated from the class diagram.
- Constants.java - generated from the class diagram.
- HashData.java - one of the predefined security data types.
- HashedData.java - one of the predefined security data types.
- Nonce.java - one of the predefined security data types.
- Secret.java - one of the predefined security data types.
- Arrays.java - a class with utility methods that are not application specific.
- Math.java - a class with utility methods that are not application specific.
