@Requires(property="alexa.verifiers.timestamp",
notEquals="false")
@Factory
public class SkillRequestTimestampVerifierFactory
extends java.lang.Object
timeStampToleranceSystemProperty()
is forked from https://github.com/alexa/alexa-skills-kit-sdk-for-java ask-sdk-servlet-support module.
Factory
to instantiate a request timestamp SkillServletVerifier
.Constructor and Description |
---|
SkillRequestTimestampVerifierFactory() |
Modifier and Type | Method and Description |
---|---|
SkillServletVerifier |
createSkillRequestTimestampVerifier() |
static java.lang.Long |
timeStampToleranceSystemProperty()
Returns the value of the
AskHttpServerConstants.TIMESTAMP_TOLERANCE_SYSTEM_PROPERTY JVM system property as a Long ,
or returns null if the property is empty. |
public SkillRequestTimestampVerifierFactory()
@Singleton public SkillServletVerifier createSkillRequestTimestampVerifier()
SkillRequestTimestampVerifier
with a tolerance in milliseconds which is specified with
the system property or the default value .public static java.lang.Long timeStampToleranceSystemProperty()
AskHttpServerConstants.TIMESTAMP_TOLERANCE_SYSTEM_PROPERTY
JVM system property as a Long
,
or returns null if the property is empty.AskHttpServerConstants.TIMESTAMP_TOLERANCE_SYSTEM_PROPERTY
system property as a Long
, or null
if the property is empty.java.lang.IllegalArgumentException
- if the system property is present but not parseable as a Long.