public final class SpeechletRequestSignatureVerifier extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
checkRequestSignature(byte[] serializedSpeechletRequest,
String baseEncoded64Signature,
String signingCertificateChainUrl)
Verifies the certificate authenticity using the configured TrustStore and the signature of
the speechlet request.
|
static X509Certificate |
retrieveAndVerifyCertificateChain(String signingCertificateChainUrl)
Retrieves the certificate from the specified URL and confirms that the certificate is valid.
|
public static void checkRequestSignature(byte[] serializedSpeechletRequest,
String baseEncoded64Signature,
String signingCertificateChainUrl)
serializedSpeechletRequest - speechlet request serialized as a string of JSONbaseEncoded64Signature - the signature for provided in the request headersigningCertificateChainUrl - the certificate chain URL provided in the request headerpublic static X509Certificate retrieveAndVerifyCertificateChain(String signingCertificateChainUrl) throws CertificateException
signingCertificateChainUrl - the URL to retrieve the certificate chain fromCertificateException - if the certificate cannot be retrieve or is invalidCopyright © 2016. All rights reserved.