@FunctionalInterface @DefaultImplementation(value=DefaultRequestEnvelopeVerificationService.class) public interface RequestEnvelopeVerificationService
RequestEnvelope
. If invalid an exception is thrown.Modifier and Type | Method and Description |
---|---|
void |
verify(io.micronaut.http.HttpHeaders httpHeaders,
byte[] serializedRequestEnvelope,
com.amazon.ask.model.RequestEnvelope requestEnvelope) |
void verify(io.micronaut.http.HttpHeaders httpHeaders, byte[] serializedRequestEnvelope, com.amazon.ask.model.RequestEnvelope requestEnvelope) throws java.lang.SecurityException, com.amazon.ask.exception.AskSdkException
httpHeaders
- 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