Yubico Forum
https://forum.yubico.com/

How to get OTP from Yubikey using Java application?
https://forum.yubico.com/viewtopic.php?f=30&t=2383
Page 1 of 1

Author:  ihsanhaikalz [ Wed Aug 03, 2016 3:38 pm ]
Post subject:  How to get OTP from Yubikey using Java application?

I am new with Yubikey Neo and would like to develop an app using Java, but I am already stuck with the first step: how to get OTP when I touched the Yubikey Neo. I am creating an application using Java just for test that will get the OTP and show it back to user. Is there a simple example for that?

Thanks

Author:  MRuth [ Mon Aug 08, 2016 8:37 pm ]
Post subject:  Re: How to get OTP from Yubikey using Java application?

If it is just the standard Yubico OTP implementation that you are looking for, then as soon as the contact is pressed and released, or held for 3 sec and then released if configured in slot 2, the Yubikey acts like a standard keyboard and outputs the OTP as keyboard events. Either using a text input or text capture method, you should be able to retrieve the OTP within a Java application.

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/