Class
SASLAuthenticationManager
final class SASLAuthenticationManager<M> where M : SASLAuthenticationMechanism
Topics
Initializers
Instance Methods
func handle(message: [UInt8]?, sender: ([UInt8]) throws -> Void) throws -> BoolHandle 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
protocol PostgresDatabasestruct PostgresDataprotocol PostgresDataConvertiblestruct PostgresQueryResultprotocol PostgresJSONCodableprotocol PostgresJSONBCodableclass PostgresMessageEncoderclass PostgresMessageDecoderprotocol PostgresRequestProtocol to encapsulate a function call on the Postgres serverstruct PostgresMessageA frontend or backend Postgres message.protocol PostgresMessageTypetypealias PostgresFormatCodeclass PostgresListenContextContext for receiving NotificationResponse messages on a connection, used for PostgreSQL’sLISTEN/NOTIFYsupport.struct PreparedQueryprotocol SASLAuthenticationMechanismThe 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.