Nitrokey3A use for login access

Hello Experts!
Anybody who can guide me how to integrate Nitrokey3A for authentication purposes in my desktop java application?
I have made login page in desktop application(using java swing , application runs on Ubuntu OS) containing username and password. I want to implement second factor authentication using Nitrokey.
How Nitrokey will be accessed/integrated using my java desktop application for authentication.