public class EdgeGridV1Signer extends Object
This class implements the EdgeGrid Request Signature algorithm described by
API Client
Authentication. All OPEN API requests should have a signature generated by
getSignature(Request, ClientCredential) sent as their
Authorization header.
This class is deliberately designed to be library-agnostic. Instances of this class hold no local state, so they can be re-used repeatedly to produce request signatures.
The main entry point to produce a signature is
getSignature(Request, ClientCredential). This method's two arguments are
immutable representations of exactly what they sound like: an API request and your client
credentials. They should be built with their Builder classes (Request.RequestBuilder and
ClientCredential.ClientCredentialBuilder respectively).
| Constructor and Description |
|---|
EdgeGridV1Signer()
Creates signer with default configuration.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getSignature(Request request,
ClientCredential credential)
Generates signature for a given HTTP request and client credential.
|
public EdgeGridV1Signer()
public String getSignature(Request request, ClientCredential credential) throws RequestSigningException
request - a HTTP request to signcredential - client credential used to sign a requestRequestSigningException - if signing of a given request failedNullPointerException - if request or credential is nullIllegalArgumentException - if request contains multiple request headers with the same
header nameCopyright © 2016–2018. All rights reserved.