Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
sasl::TSaslClient Class Reference

#include <TSasl.h>

Inheritance diagram for sasl::TSaslClient:
Collaboration diagram for sasl::TSaslClient:

Public Member Functions

 TSaslClient (const std::string &mechanisms, const std::string &authorizationId, const std::string &protocol, const std::string &serverName, const std::map< std::string, std::string > &props, sasl_callback_t *callbacks)
 
uint8_t * evaluateChallengeOrResponse (const uint8_t *challenge, const uint32_t len, uint32_t *outLen)
 
virtual std::string getMechanismName ()
 
std::string getNegotiatedProperty (const std::string &propName)
 
virtual bool hasInitialResponse ()
 
bool isComplete ()
 
uint8_t * unwrap (const uint8_t *incoming, const int offset, const uint32_t len, uint32_t *outLen)
 
uint8_t * wrap (const uint8_t *outgoing, int offset, const uint32_t len, uint32_t *outLen)
 
std::string getUsername ()
 

Static Public Member Functions

static void SaslInit (sasl_callback_t *callbacks)
 
static void SaslDone ()
 

Protected Attributes

bool authComplete
 
sasl_conn_t * conn
 

Private Attributes

bool clientStarted
 
std::string chosenMech
 
std::string mechList
 

Detailed Description

Definition at line 123 of file TSasl.h.

Constructor & Destructor Documentation

sasl::TSaslClient::TSaslClient ( const std::string &  mechanisms,
const std::string &  authorizationId,
const std::string &  protocol,
const std::string &  serverName,
const std::map< std::string, std::string > &  props,
sasl_callback_t *  callbacks 
)

Member Function Documentation

uint8_t* sasl::TSaslClient::evaluateChallengeOrResponse ( const uint8_t *  challenge,
const uint32_t  len,
uint32_t *  outLen 
)
virtual

Implements sasl::TSasl.

virtual std::string sasl::TSaslClient::getMechanismName ( )
virtual

Reimplemented from sasl::TSasl.

std::string sasl::TSaslClient::getNegotiatedProperty ( const std::string &  propName)
std::string sasl::TSasl::getUsername ( )
inherited
virtual bool sasl::TSaslClient::hasInitialResponse ( )
virtual

Reimplemented from sasl::TSasl.

bool sasl::TSasl::isComplete ( )
inlineinherited

Definition at line 77 of file TSasl.h.

static void sasl::TSasl::SaslDone ( )
inlinestaticinherited

Definition at line 68 of file TSasl.h.

static void sasl::TSaslClient::SaslInit ( sasl_callback_t *  callbacks)
inlinestatic

Definition at line 130 of file TSasl.h.

Referenced by impala::InitAuth().

uint8_t* sasl::TSasl::unwrap ( const uint8_t *  incoming,
const int  offset,
const uint32_t  len,
uint32_t *  outLen 
)
inherited
uint8_t* sasl::TSasl::wrap ( const uint8_t *  outgoing,
int  offset,
const uint32_t  len,
uint32_t *  outLen 
)
inherited

Member Data Documentation

bool sasl::TSasl::authComplete
protectedinherited

Definition at line 110 of file TSasl.h.

std::string sasl::TSaslClient::chosenMech
private

Definition at line 154 of file TSasl.h.

bool sasl::TSaslClient::clientStarted
private

Definition at line 151 of file TSasl.h.

sasl_conn_t* sasl::TSasl::conn
protectedinherited

Definition at line 112 of file TSasl.h.

std::string sasl::TSaslClient::mechList
private

Definition at line 157 of file TSasl.h.


The documentation for this class was generated from the following file: