Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 1.49 KB

File metadata and controls

35 lines (25 loc) · 1.49 KB

EdgeGrid Client for Java

Java implementation of Akamai {OPEN} EdgeGrid signing.

Maven Central Javadoc

Description

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.

Overview of EdgeRC Files

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.

Using EdgeRcClientCredentialProvider

ClientCredential credential = EdgeRcClientCredentialProvider.fromEdgeRc("~/.edgerc", "good1").getClientCredential("section");