TimestampSpeechletRequestVerifier instead of this class.@Deprecated public class TimestampVerifier extends Object
| Constructor and Description |
|---|
TimestampVerifier(long tolerance,
TimeUnit unit)
Deprecated.
Constructs a new timestamp verifier with the provided tolerance (in the provided units).
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isValid(Date timestamp)
Deprecated.
Returns true if the provided date is inclusively within the verifier tolerance, either in the
past or future, of the current system time.
|
public TimestampVerifier(long tolerance,
TimeUnit unit)
tolerance - the tolerance of this verifierunit - the time unit of the tolerance parameterpublic boolean isValid(Date timestamp)
null date.timestamp - the timestamp to verifyCopyright © 2016. All rights reserved.