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 Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoidverify(io.micronaut.http.HttpHeaders httpHeaders, byte[] serializedRequestEnvelope, com.amazon.ask.model.RequestEnvelope requestEnvelope)
-
Constructor Details
-
DefaultRequestEnvelopeVerificationService
- 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:
verifyin interfaceRequestEnvelopeVerificationService- Parameters:
httpHeaders- HTTP Headers of the requestserializedRequestEnvelope- byte array of the request enveloperequestEnvelope- 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
-