Canvas provides a SignedRequest object that has methods you can use to work with signed requests.
| Method | Signature | Description |
|---|---|---|
verifyAndDecode |
public static CanvasRequest verifyAndDecode(String input, String secret) throws SecurityException |
Used to verify and decode a signed request; returns a CanvasRequest Java object. |
verifyAndDecodeAsJson |
public static String verifyAndDecodeAsJson(String input, String secret) throws SecurityException |
Used to verify and decode a signed request; returns the CanvasRequest data in a JSON string. |
See Also