I am new to Couchbase and need help in Java SDK authentication.
I have downloaded CB server comminity edition 6.0 and installed the same on my local machine.
I am trying to connect to the server using java SDK. I refer to following online documentation for the same.
It seems the new SDK 2.7 needs Authenticator object to be passed as a parameter to cluster.ahthenticate method. Where as the docuemntation about states passing as user name and passwprd as string parameters. I could not find any documentation or example on how to use Authenticator object to pass on the authenticate method.
@dilipapte The original code should work just fine. If it didn’t, then there is something else going on. I don’t see how changing the code would make it work. If you are happy with where you at now, then that’s good. Otherwise, if you want this looked into, I would suggest you provide the logs showing the error you get.
Yeah I am able to setup certificatesa and keystore but I need code that i can run to test that java application is authenticating via certificates. I can see 2 liner code snippet but not sure how the entire code look like. Can you share the code if you have