Click or drag to resize

DsePlainTextAuthProvider Class

AuthProvider that provides plain text authenticator instances for clients to connect to DSE clusters secured with the DseAuthenticator.
Inheritance Hierarchy
SystemObject
  Dse.AuthDsePlainTextAuthProvider

Namespace:  Dse.Auth
Assembly:  Dse (in Dse.dll) Version: 2.9.0
Syntax
C#
public class DsePlainTextAuthProvider : IAuthProvider

The DsePlainTextAuthProvider type exposes the following members.

Constructors
  NameDescription
Public methodDsePlainTextAuthProvider(String, String)
Creates a new instance of DsePlainTextAuthProvider.
Public methodDsePlainTextAuthProvider(String, String, String)
Creates a new instance of DsePlainTextAuthProvider, enabling proxy authentication.
Top
Methods
  NameDescription
Public methodNewAuthenticator
The IAuthenticator to use when connecting to host.
Public methodSetName
Top
Examples
Creating a auth-enabled Cluster instance:
var cluster = DseCluster.Builder()
    .AddContactPoint(h1)
    .WithAuthProvider(new DsePlainTextAuthProvider("user", "p@sword1"))
    .Build();
See Also