Class DseGssapiAuthProvider
Provides GSSAPI authenticator instances for clients to connect to DSE clusters secured with the DseAuthenticator.
Inheritance
System.Object
DseGssapiAuthProvider
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 DseGssapiAuthProvider : IAuthProviderNamed, IAuthProvider
Constructors
DseGssapiAuthProvider(String, Func<IPEndPoint, String>)
Creates a new instance of DseGssapiAuthProvider.
Declaration
public DseGssapiAuthProvider(string service = "dse", Func<IPEndPoint, string> hostNameResolver = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | service | Name of the service. Defaults to "dse" |
System.Func<System.Net.IPEndPoint, System.String> | hostNameResolver | Method to resolve the host name given the endpoint. Defaults to UseIpResolver(IPEndPoint). |
Methods
NewAuthenticator(IPEndPoint)
Returns a new IAuthenticator instance to handle authentication for a given endpoint.
Declaration
public IAuthenticator NewAuthenticator(IPEndPoint host)
Parameters
Type | Name | Description |
---|---|---|
System.Net.IPEndPoint | host |
Returns
Type | Description |
---|---|
IAuthenticator |
Exceptions
Type | Condition |
---|---|
AuthenticationException | When the host name can not be resolved. |
ReverseDnsResolver(IPEndPoint)
Performs a reverse DNS query that resolves an IPv4 or IPv6 address to a hostname.
Declaration
public static string ReverseDnsResolver(IPEndPoint endpoint)
Parameters
Type | Name | Description |
---|---|---|
System.Net.IPEndPoint | endpoint |
Returns
Type | Description |
---|---|
System.String |
SetName(String)
Declaration
public void SetName(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name |
UseIpResolver(IPEndPoint)
Returns the IP address of the endpoint as a string.
Declaration
public static string UseIpResolver(IPEndPoint endpoint)
Parameters
Type | Name | Description |
---|---|---|
System.Net.IPEndPoint | endpoint |
Returns
Type | Description |
---|---|
System.String |