class Vertica::Protocol::Authentication

Constants

CLEARTEXT_PASSWORD
CRYPT_PASSWORD
GSS
GSS_CONTINUE
KERBEROS_V5
MD5_PASSWORD
OK
SCM_CREDENTIAL
SSPI

Attributes

auth_data[R]
code[R]
salt[R]

Public Class Methods

new(data) click to toggle source
# File lib/vertica/protocol/backend/authentication.rb, line 20
def initialize(data)
  @code, other = data.unpack('Na*')
  case @code
    when CRYPT_PASSWORD, MD5_PASSWORD then @salt = other
    when GSS_CONTINUE then @auth_data = other
  end
end