@Singleton public class DefaultRequestEnvelopeVerificationService extends java.lang.Object implements RequestEnvelopeVerificationService
DefaultImplementation of RequestEnvelopeVerificationService.| Constructor and Description |
|---|
DefaultRequestEnvelopeVerificationService(java.util.List<SkillServletVerifier> verifiers) |
| Modifier and Type | Method and Description |
|---|---|
void |
verify(io.micronaut.http.HttpHeaders httpHeaders,
byte[] serializedRequestEnvelope,
com.amazon.ask.model.RequestEnvelope requestEnvelope) |
public DefaultRequestEnvelopeVerificationService(java.util.List<SkillServletVerifier> verifiers)
verifiers - Skill Verifierspublic void verify(io.micronaut.http.HttpHeaders httpHeaders,
byte[] serializedRequestEnvelope,
com.amazon.ask.model.RequestEnvelope requestEnvelope)
throws java.lang.SecurityException,
com.amazon.ask.exception.AskSdkException
verify in interface RequestEnvelopeVerificationServicehttpHeaders - HTTP Headers of the requestserializedRequestEnvelope - byte array of the request enveloperequestEnvelope - Request Envelopejava.lang.SecurityException - Raised if the signature of the request cannot be matched.com.amazon.ask.exception.AskSdkException - ASK SDK exception raised by teh verifiers