public final class Crypto extends Object
Modifier and Type | Method and Description |
---|---|
static String |
signBody(String body,
String secret)
Sign a string (presumably an http request body) and base-64 encode it.
|
public static String signBody(String body, String secret) throws IllegalArgumentException
body
- The body to signsecret
- The signing keyIllegalArgumentException
- if the secret key is invalidCopyright © 2021. All rights reserved.