Class HttpServerAlexaHttpRequest
java.lang.Object
io.micronaut.aws.alexa.httpserver.verifiers.HttpServerAlexaHttpRequest
- All Implemented Interfaces:
AlexaHttpRequest
HTTP Server specific implementation of
AlexaHttpRequest
.
NOTICE: This class is forked from com.amazon.ask.servlet.verifiers.ServletRequest found at https://github.com/alexa/alexa-skills-kit-sdk-for-java ask-sdk-servlet-support module- Since:
- 2.0.0
- Author:
- sdelamo
-
Constructor Summary
ConstructorDescriptionHttpServerAlexaHttpRequest
(io.micronaut.http.HttpHeaders httpHeaders, byte[] serializedRequestEnvelope, com.amazon.ask.model.RequestEnvelope deserializedRequestEnvelope) Constructor to build an instance of ServletRequest. -
Method Summary
Modifier and TypeMethodDescriptioncom.amazon.ask.model.RequestEnvelope
byte[]
-
Constructor Details
-
HttpServerAlexaHttpRequest
public HttpServerAlexaHttpRequest(io.micronaut.http.HttpHeaders httpHeaders, byte[] serializedRequestEnvelope, com.amazon.ask.model.RequestEnvelope deserializedRequestEnvelope) Constructor to build an instance of ServletRequest.- Parameters:
httpHeaders
- httpHeadersserializedRequestEnvelope
- serialized request envelope.deserializedRequestEnvelope
- de-serialized request envelope.
-
-
Method Details
-
getBaseEncoded64Signature
- Specified by:
getBaseEncoded64Signature
in interfaceAlexaHttpRequest
- Returns:
- the signature, base64 encoded.
-
getSigningCertificateChainUrl
- Specified by:
getSigningCertificateChainUrl
in interfaceAlexaHttpRequest
- Returns:
- URL for the certificate chain needed to verify the request signature.
-
getSerializedRequestEnvelope
public byte[] getSerializedRequestEnvelope()- Specified by:
getSerializedRequestEnvelope
in interfaceAlexaHttpRequest
- Returns:
- the request envelope, in serialized form.
-
getDeserializedRequestEnvelope
public com.amazon.ask.model.RequestEnvelope getDeserializedRequestEnvelope()- Specified by:
getDeserializedRequestEnvelope
in interfaceAlexaHttpRequest
- Returns:
- the request envelope, in deserialized form.
-