public class HmacPostBodyDigest extends Object implements ParamsDigest
This may be used as the value of a @HeaderParam, @QueryParam or @PathParam to create a digest of the post body (composed of @FormParam's). Don't use as the value of a @FormParam, it will probably cause an infinite loop.
This may be used for REST APIs where some parameters' values must be digests of other parameters. An example is the MtGox API v1, where the Rest-Sign header parameter must be a digest of the request body (which is composed of @FormParams).
Modifier and Type | Method and Description |
---|---|
static HmacPostBodyDigest |
createInstance(String secretKeyBase64) |
String |
digestParams(RestInvocation restInvocation) |
public static HmacPostBodyDigest createInstance(String secretKeyBase64) throws IllegalArgumentException
IllegalArgumentException
public String digestParams(RestInvocation restInvocation)
digestParams
in interface ParamsDigest
Copyright © 2012–2016. All rights reserved.