JAVA REST API example with Anaplan generated Certificate

Highlighted
Contributor

JAVA REST API example with Anaplan generated Certificate

Hi All -

 

SSO is enabled for my tenant with exemption users not allowed due to internal policy so certificate authentication is my next option to bring data into anaplan is a systematic flow. 

 

I will obtain a CA Certificate as described here https://help.anaplan.com/anapedia/Content/Administration_and_Security/Tenant_Administration/Security... however it seems Anaplan will generate a certificate for usage as well. See https://help.anaplan.com/anapedia/Content/GettingStarted/Certificates.htm

 

I want to use this Anaplan Gnerated 

 

Questions:

 

1. Can this certificate be used with the REST APIs? Only Anaplan Connect is mentioned.

 

2. if YES to #1, is there an example I can reference implemented JAVA

4 REPLIES 4
Expert

Re: JAVA REST API example with Anaplan generated Certificate

CA-supplied certificates are used in the v2.x API (see https://anaplanauthentication.docs.apiary.io/#reference/authentication-token and https://anaplanbulkapi20.docs.apiary.io/#introduction/getting-started/authentication) whereas the Anaplan-generated ones are used with the v1.x API. CA certificates with the 2.0 API is recommended for new installations; for either the Anaplan Connect source code (v1.3.x AC for v1.x API or v1.4+ AC for v2.0 API) serves as a reference implementation for accessing the REST API.

 

Message 2 of 5
Contributor

Re: JAVA REST API example with Anaplan generated Certificate

Thanks for replying. 

 

"for either the Anaplan Connect source code (v1.3.x AC for v1.x API or v1.4+ AC for v2.0 API) serves as a reference implementation for accessing the REST API."

 

Is the Anaplan Connector Source code available for download? Where can i find this? 

Only the client jar can be found @ https://help.anaplan.com/anapedia/Content/Downloads/DL_Downloads.html?cshid=1495 

Message 3 of 5
Expert

Re: JAVA REST API example with Anaplan generated Certificate

The source code is available at https://github.com/anaplaninc/anaplan-java-client

 

Message 4 of 5
Contributor

Re: JAVA REST API example with Anaplan generated Certificate

Thank you....this is really helpful...Started to drill down into the code.

 

Found the main program interesting...basically 500 line while loop but to be fair, there is a '

//TODO: Modularize main()

 

Message 5 of 5