Skip to content

Class

SASLAuthenticationManager

final class SASLAuthenticationManager<M> where M : SASLAuthenticationMechanism

Topics

Initializers

Instance Methods

  • handle(message:sender:)
    Handle an incoming message via the provided mechanism. The sender closure 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, true is returned to indicate that authentication has successfully completed. false is returned to indicate that further steps are required by the current mechanism.

See Also

Deprecated APIs