Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
authentication.h
Go to the documentation of this file.
1 // Copyright 2012 Cloudera Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 
16 #ifndef IMPALA_SERVICE_AUTHENTICATION_H
17 #define IMPALA_SERVICE_AUTHENTICATION_H
18 
19 #include <string>
20 #include <thrift/transport/TTransport.h>
21 
22 #include "rpc/auth-provider.h"
23 #include "sasl/sasl.h"
25 #include "transport/TSasl.h"
26 #include "common/status.h"
27 
28 using namespace ::apache::thrift::transport;
29 
30 namespace impala {
31 
35 class AuthManager {
36  public:
38 
41  Status Init();
42 
48 
53 
54  private:
56 
59  boost::scoped_ptr<AuthProvider> internal_auth_provider_;
60  boost::scoped_ptr<AuthProvider> external_auth_provider_;
61 };
62 
63 
64 }
65 #endif
AuthProvider * GetInternalAuthProvider()
boost::scoped_ptr< AuthProvider > internal_auth_provider_
static AuthManager * auth_manager_
AuthProvider * GetExternalAuthProvider()
static AuthManager * GetInstance()
boost::scoped_ptr< AuthProvider > external_auth_provider_