Yeah. Have a look at the pull request. ;)

I added a similar implementation, so one can choose which one to use. You can pass a ExactClock into the Totp and it will work. 
I think nothing here is right or wrong. Depends on what someone expect. That's why the developer should choose the right clock. WDYT?


2012/12/17 Bruno Oliveira <bruno@abstractj.org>
Hmm gotcha, a Clock instance will be created on Totp class. We're not using a single instance of Clock to the whole implementation, just change the code for something like this https://gist.github.com/250d78b8e19bc02319ee, might work.

--
"The measure of a man is what he does with power" - Plato
-
@abstractj
-
Volenti Nihil Difficile



On Monday, December 17, 2012 at 11:21 AM, Daniel Manzke wrote:

> Clock c = new Clock();
> while(true){
> System.out.println(c.getCurrentInterval());
> Thread.sleep(1000);
> }



_______________________________________________
aerogear-dev mailing list
aerogear-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-dev



--
Viele Grüße/Best Regards

Daniel Manzke