public class ApplicationIdSpeechletRequestEnvelopeVerifier extends Object implements SpeechletRequestEnvelopeVerifier
| Constructor and Description |
|---|
ApplicationIdSpeechletRequestEnvelopeVerifier(Set<String> supportedApplicationIds)
Constructs a new application ID verifier with the provided set of supported application IDs.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
verify(SpeechletRequestEnvelope<?> requestEnvelope)
Returns true if the provided
applicationId is supported by this verifier. |
public ApplicationIdSpeechletRequestEnvelopeVerifier(Set<String> supportedApplicationIds)
supportedApplicationIds - a set of application IDs supported by the servicepublic boolean verify(SpeechletRequestEnvelope<?> requestEnvelope)
applicationId is supported by this verifier. If this
verifier was constructed from an empty set of supported applicationIds, this method
returns true for any application ID (including null values). Otherwise, this method returns
true only if the SpeechletRequest's applicationId is supported. If the
applicationId cannot be found, the method will return false.verify in interface SpeechletRequestEnvelopeVerifierrequestEnvelope - the request in which to verify a valid application IDCopyright © 2016. All rights reserved.