C# Class Dse.Auth.DseGssapiAuthProvider

Provides GSSAPI authenticator instances for clients to connect to DSE clusters secured with the DseAuthenticator.
Inheritance: IAuthProviderNamed
Show file Open project: datastax/csharp-driver-dse Class Usage Examples

Public Methods

Method Description
DseGssapiAuthProvider ( string service = "dse", string>.Func hostNameResolver = null ) : System

Creates a new instance of DseGssapiAuthProvider.

NewAuthenticator ( IPEndPoint host ) : IAuthenticator

Returns a new IAuthenticator instance to handle authentication for a given endpoint.

ReverseDnsResolver ( IPEndPoint endpoint ) : string

Performs a reverse DNS query that resolves an IPv4 or IPv6 address to a hostname.

SetName ( string name ) : void
UseIpResolver ( IPEndPoint endpoint ) : string

Returns the IP address of the endpoint as a string.

Method Details

DseGssapiAuthProvider() public method

Creates a new instance of DseGssapiAuthProvider.
public DseGssapiAuthProvider ( string service = "dse", string>.Func hostNameResolver = null ) : System
service string Name of the service. Defaults to "dse"
hostNameResolver string>.Func /// Method to resolve the host name given the endpoint. Defaults to . ///
return System

NewAuthenticator() public method

Returns a new IAuthenticator instance to handle authentication for a given endpoint.
When the host name can not be resolved.
public NewAuthenticator ( IPEndPoint host ) : IAuthenticator
host System.Net.IPEndPoint
return IAuthenticator

ReverseDnsResolver() public static method

Performs a reverse DNS query that resolves an IPv4 or IPv6 address to a hostname.
public static ReverseDnsResolver ( IPEndPoint endpoint ) : string
endpoint System.Net.IPEndPoint
return string

SetName() public method

public SetName ( string name ) : void
name string
return void

UseIpResolver() public static method

Returns the IP address of the endpoint as a string.
public static UseIpResolver ( IPEndPoint endpoint ) : string
endpoint System.Net.IPEndPoint
return string