Skip to content

Added UID for identifying unbatched device#76

Merged
JSantosP merged 4 commits intomasterfrom
batching-ifx
Mar 21, 2022
Merged

Added UID for identifying unbatched device#76
JSantosP merged 4 commits intomasterfrom
batching-ifx

Conversation

@JSantosP
Copy link
Copy Markdown
Member

@JSantosP JSantosP commented Mar 10, 2022

The UID is required for checking to which concrete UID-range belongs some batch that will be assigned to the device

@JSantosP JSantosP self-assigned this Mar 10, 2022
Copy link
Copy Markdown
Member

@sergkh sergkh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a comment

@@ -262,7 +262,7 @@ public static void main(String[] argv) {
Card card = terminal.connect("*");
Optional<byte[]> uid = getUID(card.getBasicChannel());
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I see this UID is only used for batching URL, so I would rather move it to the FidesmoCard (and reading as well). That will be more convenient to use and won't break encapsulation.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did it that way but then I decided to change and reuse that getUID command as it's the very first command that needs to be sent (previous to any other SELECT). Let me check if the probe could go after any other APDU exchange (which shouldn't) and it that case I'll move UID back to FidesmoCard

@JSantosP JSantosP force-pushed the batching-ifx branch 2 times, most recently from 3ac9847 to 6b377d8 Compare March 11, 2022 10:25
@JSantosP JSantosP merged commit 9f752ef into master Mar 21, 2022
@JSantosP JSantosP deleted the batching-ifx branch March 21, 2022 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants