Package org.scribe.services
Class TimestampServiceImpl
java.lang.Object
org.scribe.services.TimestampServiceImpl
- All Implemented Interfaces:
TimestampService
Implementation of
TimestampService
using plain java classes.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetNonce()
Returns a nonce (unique value for each request)Returns the unix epoch timestamp in seconds
-
Constructor Details
-
TimestampServiceImpl
public TimestampServiceImpl()Default constructor.
-
-
Method Details
-
getNonce
Returns a nonce (unique value for each request)- Specified by:
getNonce
in interfaceTimestampService
- Returns:
- nonce
-
getTimestampInSeconds
Returns the unix epoch timestamp in seconds- Specified by:
getTimestampInSeconds
in interfaceTimestampService
- Returns:
- timestamp
-