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: 1.0.0.0
Syntax
C#
public class DsePlainTextAuthProvider : IAuthProviderNamed, 
	IAuthProvider

The DsePlainTextAuthProvider type exposes the following members.

Constructors
  NameDescription
Public methodDsePlainTextAuthProvider
Creates a new instance of DsePlainTextAuthProvider
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodNewAuthenticator
The IAuthenticator to use when connecting to host.
Public methodSetName
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Examples
Creating a auth-enabled Cluster instance:
var cluster = DseCluster.Builder()
    .AddContactPoint(h1)
    .WithAuthProvider(new DsePlainTextAuthProvider("user", "p@sword1"))
    .Build();
See Also