Click or drag to resize
Builder.WithCredentials Method
Uses the provided credentials when connecting to Cassandra hosts.

This should be used if the Cassandra cluster has been configured to use the PasswordAuthenticator. If the the default * AllowAllAuthenticator is used instead, using this method has no effect.

Namespace: Cassandra
Assembly: Cassandra (in Cassandra.dll) Version: 3.3.0
Syntax
C#
public Builder WithCredentials(
	string username,
	string password
)

Parameters

username
Type: System.String
the user name to use to login to Cassandra hosts.
password
Type: System.String
the password corresponding to

Return Value

Type: Builder
this Builder
See Also