Use the Analytics 2.0 APIs with Java
Create the certificate and private key using openssl
Copied to your clipboard$ openssl req -nodes -text -x509 -newkey rsa:2048 -keyout secret.pem -out certificate.pem -days 356Upload the certificate.pem in the Adobe Developer Console > Your Integration > Public keys
convert private key to DER format
Copied to your clipboard$ openssl pkcs8 -topk8 -inform PEM -outform DER -in secret.pem -nocrypt > secret.keyEdit the config.properties in src/main/resources/ and add the values from your Adobe Developer Console integration.
Build
Copied to your clipboard$ mvn clean packageRun
Copied to your clipboard$ java -jar target/IMS-Client-1.0-SNAPSHOT-jar-with-dependencies.jar
See Java client resources on GitHub for example code and additional resources.