Class DefaultRequestEnvelopeVerificationService

java.lang.Object
io.micronaut.aws.alexa.httpserver.services.DefaultRequestEnvelopeVerificationService
All Implemented Interfaces:
RequestEnvelopeVerificationService

@Singleton public class DefaultRequestEnvelopeVerificationService extends Object implements RequestEnvelopeVerificationService
DefaultImplementation of RequestEnvelopeVerificationService.
  • Constructor Details

    • DefaultRequestEnvelopeVerificationService

      public DefaultRequestEnvelopeVerificationService(List<SkillServletVerifier> verifiers)
      Parameters:
      verifiers - Skill Verifiers
  • Method Details

    • verify

      public void verify(io.micronaut.http.HttpHeaders httpHeaders, byte[] serializedRequestEnvelope, com.amazon.ask.model.RequestEnvelope requestEnvelope) throws SecurityException, com.amazon.ask.exception.AskSdkException
      Specified by:
      verify in interface RequestEnvelopeVerificationService
      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