- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
07-29-2018 10:40 PM
07-29-2018 10:42 PM
Java code ready now to call CCP using REST API and get the required password. I'd like to understand the best authentication method for this java code.
07-30-2018 01:06 AM
Actually in my java code I'm using authorization explicitly, is it a right approach?HttpGet getRequest = new HttpGet(queryURL);
System.out.println("executing request to " + target+getRequest.getURI());
getRequest.addHeader("Authorization", "Basic ZGVtb2FkLmxvY1xhZG1pbmlzdHJhdG9yOlRyeXN1Y2Nlc3M4MA==");
07-30-2018 02:00 AM
One of the key reasons/benefits of using AIM, is to remove hardcode credential. So having a hard coded corporate AD credentials is not the best idea. Is this scheduler executes on a domain machine? If yes, you may consider to use domain authenication; if not, there are other authenications like allow machines or cert that can be used by Java. These are standard authenications so you can find lots of example in the internet.
07-30-2018 02:07 AM
You can refer to the CCP guide.
CCP supports 3 app authentication methods:
-Client Certs
-Allowed Machine : IP address
-Windows domain OS User: OS User which is running the app
08-19-2018 02:29 AM
If local cache is one of the consideration, you may want to consider using CP instead.
There is a ready Java library to retrieve credential.
03-28-2019 09:06 AM
We're running into a problem where there are *too* many examples on the internet for accessing the windows user default credentials (useDefaultCredentials in Powershell/.NET speak). And many of them no longer work. Has anyone found a straightforward Java example for making a CCP REST call pulling the user's credentials from the authenticated windows context?
If not, and *if* we do find something that works, I'll contribute it here.
07-21-2020 01:13 PM
Well, following up on old questions we had.
We're starting to move all this to Conjur/DAP. Much more flexible and scalable. :]
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!

