Class
SASLAuthenticationManager
final class SASLAuthenticationManager<M> where M : SASLAuthenticationMechanism
Topics
Initializers
Instance Methods
handle(message:sender:)Handle an incoming message via the provided mechanism. Thesenderclosure will be invoked with any data that should be transmitted to the other side of the negotiation. An error thrown from the closure will immediately result in an authentication failure state. The closure may be invoked even if authentication otherwise fails (such as for mechanisms which send failure responses). On authentication failure, an error is thrown. Otherwise,trueis returned to indicate that authentication has successfully completed.falseis returned to indicate that further steps are required by the current mechanism.
See Also
Deprecated APIs
PostgresDatabasePostgresDataPostgresDataConvertiblePostgresQueryResultPostgresJSONCodablePostgresJSONBCodablePostgresMessageEncoderPostgresMessageDecoderPostgresRequestProtocol to encapsulate a function call on the Postgres serverPostgresMessageA frontend or backend Postgres message.PostgresMessageTypePostgresFormatCodePostgresListenContextContext for receiving NotificationResponse messages on a connection, used for PostgreSQL’sLISTEN/NOTIFYsupport.PreparedQuerySASLAuthenticationMechanismThe protocol to which all SASL mechanism implementations must conform. It is the responsibility of each individual implementation to provide an API for creating instances of itself which are able to retrieve information from the caller (such as usernames and passwords) by some mechanism.