PostgresNIO Documentation

Enumeration Postgres​Message.​Authentication

@available(*, deprecated, message: "Will be removed from public API")
    public enum Authentication: PostgresMessageType  

Authentication request returned by the server.

%165 PostgresMessage.Authentication PostgresMessage.Authentication PostgresMessageType PostgresMessageType PostgresMessage.Authentication->PostgresMessageType

Member Of

PostgresMessage

A frontend or backend Postgres message.

Conforms To

PostgresMessageType

Enumeration Cases

ok

case ok

AuthenticationOk Specifies that the authentication was successful.

plaintext

case plaintext

AuthenticationCleartextPassword Specifies that a clear-text password is required.

md5

case md5([UInt8]) 

AuthenticationMD5Password Specifies that an MD5-encrypted password is required.

sasl​Mechanisms

case saslMechanisms([String]) 

AuthenticationSASL Specifies the start of SASL mechanism negotiation.

sasl​Continue

case saslContinue([UInt8]) 

AuthenticationSASLContinue Specifies SASL mechanism-specific challenge data.

sasl​Final

case saslFinal([UInt8]) 

AuthenticationSASLFinal Specifies mechanism-specific post-authentication client data.

Properties

identifier

public static var identifier: PostgresMessage.Identifier  

description

public var description: String  

See CustomStringConvertible.

Methods

parse(from:​)

public static func parse(from buffer: inout ByteBuffer) throws -> Authentication  

Parses an instance of this message type from a byte buffer.

serialize(into:​)

public func serialize(into buffer: inout ByteBuffer) throws