Module cqerl_auth_plain_handler

Behaviours: cqerl_auth_handler.

Function Index

auth_handle_challenge/2
auth_handle_error/2
auth_handle_success/2
auth_init/3
encode_plain_credentials/1Encodes a proplist structure with username and password keys into the binary structure expected for the SASL PLAIN mechanism.

Function Details

auth_handle_challenge/2

auth_handle_challenge(Msg, State) -> any()

auth_handle_error/2

auth_handle_error(Msg, State) -> any()

auth_handle_success/2

auth_handle_success(Msg, State) -> any()

auth_init/3

auth_init(Credentials, AuthClass, Address) -> any()

encode_plain_credentials/1

encode_plain_credentials(PropList::[term()]) -> binary()

Encodes a proplist structure with username and password keys into the binary structure expected for the SASL PLAIN mechanism. Extracted from Cassandra's PasswordAuthenticator class. The values in the proplist can be binary strings or plain strings (lists).


Generated by EDoc