Apache Mesos
basic_authenticator_factory.hpp
Go to the documentation of this file.
1 // Licensed to the Apache Software Foundation (ASF) under one
2 // or more contributor license agreements. See the NOTICE file
3 // distributed with this work for additional information
4 // regarding copyright ownership. The ASF licenses this file
5 // to you under the Apache License, Version 2.0 (the
6 // "License"); you may not use this file except in compliance
7 // with the License. You may obtain a copy of the License at
8 //
9 // http://www.apache.org/licenses/LICENSE-2.0
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 
17 #ifndef __MESOS_AUTHENTICATION_HTTP_AUTHENTICATOR_FACTORY_HPP__
18 #define __MESOS_AUTHENTICATION_HTTP_AUTHENTICATOR_FACTORY_HPP__
19 
20 #include <string>
21 
22 #include <mesos/mesos.hpp>
23 
25 
26 #include <stout/try.hpp>
27 #include <stout/hashmap.hpp>
28 
29 namespace mesos {
30 namespace http {
31 namespace authentication {
32 
34 public:
36 
69  const Parameters& parameters);
70 
82  const std::string& realm,
83  const Credentials& credentials);
84 
96  const std::string& realm,
97  const hashmap<std::string, std::string>& credentials);
98 
99 protected:
101 };
102 
103 } // namespace authentication {
104 } // namespace http {
105 } // namespace mesos {
106 
107 #endif // __MESOS_AUTHENTICATION_HTTP_AUTHENTICATOR_FACTORY_HPP__
Definition: check.hpp:33
~BasicAuthenticatorFactory()
Definition: basic_authenticator_factory.hpp:35
BasicAuthenticatorFactory()
Definition: basic_authenticator_factory.hpp:100
static Try< process::http::authentication::Authenticator * > create(const Parameters &parameters)
Creates a basic HTTP authenticator from module parameters.
Definition: agent.hpp:25
Definition: basic_authenticator_factory.hpp:33
URI http(const std::string &host, const std::string &path="/", const Option< int > &port=None(), const Option< std::string > &query=None(), const Option< std::string > &fragment=None(), const Option< std::string > &user=None(), const Option< std::string > &password=None())
Creates an http URI with the given parameters.
Definition: http.hpp:35