Java implementation of Akamai {OPEN} EdgeGrid signing.
This library implements Akamai {OPEN} EdgeGrid Authentication for Java.
This particular module is a ClientCredentialProvider implementation which is capable of reading
credentials from an EdgeRC file.
The format of an EdgeRC file is simply an INI file where each section corresponds to an OPEN credential. Each section MUST have the following properties:
- access_token
- client_secret
- client_token
- host
In addition to those 4 required properties, an additional property max-body may be present. If
absent, the implied default is 131072. Many users have mysteriously inherited a max-body value of
8192 in their EdgeRC files. That value is very unlikely to be correct. If you encounter signature
mismatch errors with POST requests, try removing that value from the file before trying anything
else.
ClientCredential credential = EdgeRcClientCredentialProvider.fromEdgeRc("~/.edgerc", "good1").getClientCredential("section");