Class DsePlainTextAuthProvider
AuthProvider that provides plain text authenticator instances for clients to connect to DSE clusters secured with the DseAuthenticator.
Inheritance
System.Object
DsePlainTextAuthProvider
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Dse.Auth
Assembly: Dse.dll
Syntax
public class DsePlainTextAuthProvider : IAuthProviderNamed, IAuthProvider
Examples
Creating a auth-enabled Cluster instance:
var cluster = DseCluster.Builder()
.AddContactPoint(h1)
.WithAuthProvider(new DsePlainTextAuthProvider("user", "p@sword1"))
.Build();
Constructors
DsePlainTextAuthProvider(String, String)
Creates a new instance of DsePlainTextAuthProvider.
Declaration
public DsePlainTextAuthProvider(string username, string password)
Parameters
Type | Name | Description |
---|---|---|
System.String | username | A not |
System.String | password | A not |
DsePlainTextAuthProvider(String, String, String)
Creates a new instance of DsePlainTextAuthProvider, enabling proxy authentication.
Declaration
public DsePlainTextAuthProvider(string username, string password, string authorizationId)
Parameters
Type | Name | Description |
---|---|---|
System.String | username | A not |
System.String | password | A not |
System.String | authorizationId | The optional authorization ID. Providing an authorization ID allows the currently authenticated user to act as a different user (a.k.a. proxy authentication). |
Methods
NewAuthenticator(IPEndPoint)
Declaration
public IAuthenticator NewAuthenticator(IPEndPoint host)
Parameters
Type | Name | Description |
---|---|---|
System.Net.IPEndPoint | host |
Returns
Type | Description |
---|---|
IAuthenticator |
SetName(String)
Declaration
public void SetName(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name |