Package org.scribe.services
Class TimestampServiceImpl
- java.lang.Object
-
- org.scribe.services.TimestampServiceImpl
-
- All Implemented Interfaces:
TimestampService
public class TimestampServiceImpl extends java.lang.Object implements TimestampService
Implementation ofTimestampService
using plain java classes.
-
-
Constructor Summary
Constructors Constructor Description TimestampServiceImpl()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getNonce()
Returns a nonce (unique value for each request)java.lang.String
getTimestampInSeconds()
Returns the unix epoch timestamp in seconds
-
-
-
Method Detail
-
getNonce
public java.lang.String getNonce()
Returns a nonce (unique value for each request)- Specified by:
getNonce
in interfaceTimestampService
- Returns:
- nonce
-
getTimestampInSeconds
public java.lang.String getTimestampInSeconds()
Returns the unix epoch timestamp in seconds- Specified by:
getTimestampInSeconds
in interfaceTimestampService
- Returns:
- timestamp
-
-