Should be easy by folloiwng this totorial - http://www.asaph.org/2016/04/google-authenticator-2fa-java.html