Interface RequestEnvelopeVerificationService

All Known Implementing Classes:
DefaultRequestEnvelopeVerificationService
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface @DefaultImplementation(DefaultRequestEnvelopeVerificationService.class) public interface RequestEnvelopeVerificationService
Verifies a RequestEnvelope. If invalid an exception is thrown.
Since:
2.0.0
Author:
sdelamo
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    verify(io.micronaut.http.HttpHeaders httpHeaders, byte[] serializedRequestEnvelope, com.amazon.ask.model.RequestEnvelope requestEnvelope)
     
  • Method Details

    • verify

      void verify(io.micronaut.http.HttpHeaders httpHeaders, byte[] serializedRequestEnvelope, com.amazon.ask.model.RequestEnvelope requestEnvelope) throws SecurityException, com.amazon.ask.exception.AskSdkException
      Parameters:
      httpHeaders - HTTP Headers of the request
      serializedRequestEnvelope - byte array of the request envelope
      requestEnvelope - Request Envelope
      Throws:
      SecurityException - Raised if the signature of the request cannot be matched.
      com.amazon.ask.exception.AskSdkException - ASK SDK exception raised by teh verifiers