Connecting to Cassandra is very similar to connecting to other datasources. With Cassandra, credentials are not required.
String cassandraIPAddress = "127.0.0.1";
String cassandraKeyspace = "myKeyspace";
String username = "foo";
String password = "bar";
...