]> git.proxmox.com Git - ceph.git/blame - ceph/src/auth/AuthMethodList.h
import 15.2.0 Octopus source
[ceph.git] / ceph / src / auth / AuthMethodList.h
CommitLineData
7c673cae
FG
1// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2// vim: ts=8 sw=2 smarttab
3/*
4 * Ceph - scalable distributed file system
5 *
6 * Copyright (C) 2004-2009 Sage Weil <sage@newdream.net>
7 *
8 * This is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License version 2.1, as published by the Free Software
11 * Foundation. See file COPYING.
12 *
13 */
14
15#ifndef CEPH_AUTHMETHODLIST_H
16#define CEPH_AUTHMETHODLIST_H
17
9f95a23c 18#include "include/common_fwd.h"
7c673cae
FG
19#include "include/int_types.h"
20
21#include <list>
22#include <set>
23#include <string>
24
7c673cae
FG
25class AuthMethodList {
26 std::list<__u32> auth_supported;
27public:
28 AuthMethodList(CephContext *cct, std::string str);
29
30 bool is_supported_auth(int auth_type);
31 int pick(const std::set<__u32>& supported);
32
33 const std::list<__u32>& get_supported_set() const {
34 return auth_supported;
35 }
36
37 void remove_supported_auth(int auth_type);
38};
39
40
41#endif