oauthP5.oauth
Class TimestampServiceImpl

java.lang.Object
  extended by oauthP5.oauth.TimestampServiceImpl
All Implemented Interfaces:
TimestampService

public class TimestampServiceImpl
extends Object
implements TimestampService

Implementation of TimestampService using plain java classes.

Author:
Pablo Fernandez

Constructor Summary
TimestampServiceImpl()
          Default constructor.
 
Method Summary
 String getNonce()
          Returns a nonce (unique value for each request)
 String getTimestampInSeconds()
          Returns the unix epoch timestamp in seconds
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimestampServiceImpl

public TimestampServiceImpl()
Default constructor.

Method Detail

getNonce

public String getNonce()
Returns a nonce (unique value for each request)

Specified by:
getNonce in interface TimestampService
Returns:
nonce

getTimestampInSeconds

public String getTimestampInSeconds()
Returns the unix epoch timestamp in seconds

Specified by:
getTimestampInSeconds in interface TimestampService
Returns:
timestamp


Processing library oauthP5 by New York Times R&D Lab. (c) 2012