4 #ifndef DMLITE_CPP_AUTHN_H 5 #define DMLITE_CPP_AUTHN_H 69 std::vector<GroupInfo>& g):
70 credentials(c), user(u), groups(g) {}
93 virtual std::string getImplId(
void)
const throw() = 0;
120 virtual GroupInfo getGroup(
const std::string& key,
124 virtual std::vector<GroupInfo> getGroups(
void)
throw (
DmException);
131 virtual void deleteGroup(
const std::string& groupName)
throw (
DmException);
149 virtual UserInfo getUser(
const std::string& key,
153 virtual std::vector<UserInfo> getUsers(
void)
throw (
DmException);
160 virtual void deleteUser(
const std::string& userName)
throw (
DmException);
169 virtual void getIdMap(
const std::string& userName,
170 const std::vector<std::string>& groupNames,
172 std::vector<GroupInfo>* groups)
throw (
DmException);
196 #endif // DMLITE_CPP_AUTH_H std::string remoteAddress
Definition: authn.h:25
bool operator<(const SecurityCredentials &) const
std::string name
Definition: authn.h:43
std::vector< std::string > fqans
Definition: authn.h:28
bool operator!=(const SecurityCredentials &) const
SecurityContext()
Definition: authn.h:65
bool operator==(const SecurityCredentials &) const
Security context. To be created by the Authn.
Definition: authn.h:64
Header generated by CMake with the build configuration used.
SecurityContext(const SecurityCredentials &c, const UserInfo &u, std::vector< GroupInfo > &g)
Definition: authn.h:67
Base exception class.
Definition: exceptions.h:17
std::string mech
Definition: authn.h:23
CatalogInterface can only be instantiated through this class.
Definition: dmlite.h:42
bool operator>(const SecurityCredentials &) const
AuthnFactory.
Definition: authn.h:177
std::vector< GroupInfo > groups
Definition: authn.h:75
Exceptions used by the API.
UserInfo user
Definition: authn.h:74
Helpful typedef for KeyValue containers.
Definition: extensible.h:20
Base class for factories.
Definition: base.h:48
SecurityCredentials credentials
Definition: authn.h:72
std::string clientName
Definition: authn.h:24
Extensible types (hold metadata).
std::string name
Definition: authn.h:54
std::string sessionId
Definition: authn.h:26
Security credentials. To be filled by the front-end.
Definition: authn.h:22
Namespace for the dmlite C++ API.
Definition: authn.h:15