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.
// Initialize the Connection Cluster cluster = CouchbaseCluster.create("localhost"); cluster.authenticate("username", "password"); Bucket bucket = cluster.openBucket("bucketname");
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.
Can someone help?