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

#include <TSasl.h>

Inheritance diagram for sasl::TSaslServer:
Collaboration diagram for sasl::TSaslServer:

Public Member Functions

 TSaslServer (const std::string &service, const std::string &serverFQDN, const std::string &userRealm, unsigned flags, sasl_callback_t *callbacks)
 
virtual uint8_t * evaluateChallengeOrResponse (const uint8_t *challenge, const uint32_t len, uint32_t *resLen)
 
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)
 
virtual std::string getMechanismName ()
 
virtual bool hasInitialResponse ()
 
std::string getUsername ()
 

Static Public Member Functions

static void SaslInit (const sasl_callback_t *callbacks, const std::string &appname)
 
static void SaslDone ()
 

Protected Attributes

bool authComplete
 
sasl_conn_t * conn
 

Private Attributes

bool serverStarted
 

Detailed Description

Definition at line 168 of file TSasl.h.

Constructor & Destructor Documentation

sasl::TSaslServer::TSaslServer ( const std::string &  service,
const std::string &  serverFQDN,
const std::string &  userRealm,
unsigned  flags,
sasl_callback_t *  callbacks 
)

Member Function Documentation

virtual uint8_t* sasl::TSaslServer::evaluateChallengeOrResponse ( const uint8_t *  challenge,
const uint32_t  len,
uint32_t *  resLen 
)
virtual

Implements sasl::TSasl.

virtual std::string sasl::TSasl::getMechanismName ( )
inlinevirtualinherited

Reimplemented in sasl::TSaslClient.

Definition at line 100 of file TSasl.h.

std::string sasl::TSasl::getUsername ( )
inherited
virtual bool sasl::TSasl::hasInitialResponse ( )
inlinevirtualinherited

Reimplemented in sasl::TSaslClient.

Definition at line 103 of file TSasl.h.

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::TSaslServer::SaslInit ( const sasl_callback_t *  callbacks,
const std::string &  appname 
)
inlinestatic

Definition at line 176 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.

sasl_conn_t* sasl::TSasl::conn
protectedinherited

Definition at line 112 of file TSasl.h.

bool sasl::TSaslServer::serverStarted
private

Definition at line 188 of file TSasl.h.


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