An authenticator.

Functions

void

cass_authenticator_address

( const CassAuthenticator * auth, CassInet * address )

Gets the IP address of the host being authenticated.

Parameters:
Name Type Details
in auth const CassAuthenticator *
out address CassInet *
const char *

cass_authenticator_hostname

( const CassAuthenticator * auth, size_t * length )

Gets the hostname of the host being authenticated.

Parameters:
Name Type Details
in auth const CassAuthenticator *
out length size_t *
Returns:
Type Details
const char *

A null-terminated string.

const char *

cass_authenticator_class_name

( const CassAuthenticator * auth, size_t * length )

Gets the class name for the server-side IAuthentication implementation.

Parameters:
Name Type Details
in auth const CassAuthenticator *
out length size_t *
Returns:
Type Details
const char *

A null-terminated string.

void *

cass_authenticator_exchange_data

( CassAuthenticator * auth )

Gets the user data created during the authenticator exchange. This is set using CassAuthenticator::cass_authenticator_set_exchange_data.

Parameters:
Name Type Details
in auth CassAuthenticator *
Returns:
Type Details
void *

User specified exchange data previously set by CassAuthenticator::cass_authenticator_set_exchange_data.

See Also:
void

cass_authenticator_set_exchange_data

( CassAuthenticator * auth, void * exchange_data )

Sets the user data to be used during the authenticator exchange.

Parameters:
Name Type Details
in auth CassAuthenticator *
in exchange_data void *
See Also:
char *

cass_authenticator_response

( CassAuthenticator * auth, size_t size )

Gets a response token buffer of the provided size.

Parameters:
Name Type Details
in auth CassAuthenticator *
in size size_t
Returns:
Type Details
char *

A buffer to copy the response token.

void

cass_authenticator_set_response

( CassAuthenticator * auth, const char * response, size_t response_size )

Sets the response token.

Parameters:
Name Type Details
in auth CassAuthenticator *
in response const char *
in response_size size_t
void

cass_authenticator_set_error

( CassAuthenticator * auth, const char * message )

Sets an error for the authenticator exchange.

Parameters:
Name Type Details
in auth CassAuthenticator *
in message const char *
void

cass_authenticator_set_error_n

( CassAuthenticator * auth, const char * message, size_t message_length )

Same as CassAuthenticator::cass_authenticator_set_error_n, but with lengths for string parameters.

Parameters:
Name Type Details
in auth CassAuthenticator *
in message const char *
in message_length size_t
See Also: