View Source kpro_scram (kafka_protocol v4.2.0)

This module is a simplified SCRAM client side implementation. SCRAM: Salted Challenge Response Authentication Mechanism. REF: https://tools.ietf.org/html/rfc5802 NOTE: Assumptions made in this implementation 1. User names contain ascii codes only 2. User names do not contain '=' or ','

Summary

Functions

Make client's final message.
Make the fist client message.
Initialize a scram context.
Parse server first message.
Validate server's signature.

Types

-opaque scram()

Functions

-spec final(scram()) -> binary().
Make client's final message.
-spec first(scram()) -> binary().
Make the fist client message.
-spec init(sha256 | sha512, binary(), binary()) -> scram().
Initialize a scram context.
Link to this function

parse(_, ServerFirstMsg)

View Source
-spec parse(scram(), binary()) -> scram().
Parse server first message.
Link to this function

validate(Scram, ServerFinalMsg)

View Source
-spec validate(scram(), binary()) -> ok.
Validate server's signature.