SignedRequest

Canvas provides a SignedRequest object that has methods you can use to work with signed requests.

MethodSignatureDescription
verifyAndDecodepublic static CanvasRequest verifyAndDecode(String input, String secret) throws SecurityExceptionUsed to verify and decode a signed request; returns a CanvasRequest Java object.
verifyAndDecodeAsJsonpublic static String verifyAndDecodeAsJson(String input, String secret) throws SecurityExceptionUsed to verify and decode a signed request; returns the CanvasRequest data in a JSON string.

See Also