Class TimestampServiceImpl
- java.lang.Object
-
- com.github.scribejava.core.services.TimestampServiceImpl
-
- All Implemented Interfaces:
TimestampService
public class TimestampServiceImpl extends java.lang.Object implements TimestampService
Implementation ofTimestampServiceusing plain java classes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classTimestampServiceImpl.TimerInner class that usesSystemfor generating the timestamps.
-
Field Summary
Fields Modifier and Type Field Description private TimestampServiceImpl.Timertimer
-
Constructor Summary
Constructors Constructor Description TimestampServiceImpl()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetNonce()Returns a nonce (unique value for each request)java.lang.StringgetTimestampInSeconds()Returns the unix epoch timestamp in secondsprivate java.lang.LonggetTs()(package private) voidsetTimer(TimestampServiceImpl.Timer timer)
-
-
-
Field Detail
-
timer
private TimestampServiceImpl.Timer timer
-
-
Method Detail
-
getNonce
public java.lang.String getNonce()
Returns a nonce (unique value for each request)- Specified by:
getNoncein interfaceTimestampService- Returns:
- nonce
-
getTimestampInSeconds
public java.lang.String getTimestampInSeconds()
Returns the unix epoch timestamp in seconds- Specified by:
getTimestampInSecondsin interfaceTimestampService- Returns:
- timestamp
-
getTs
private java.lang.Long getTs()
-
setTimer
void setTimer(TimestampServiceImpl.Timer timer)
-
-