![]() |
XRootD
|
#include <XrdSecEntityAttr.hh>
Public Member Functions | |
XrdSecEntityAttr (XrdSecEntityXtra *xtra) | |
~XrdSecEntityAttr () | |
bool | Add (const std::string &key, const std::string &val, bool replace=false) |
bool | Add (XrdSecAttr &attr) |
bool | Get (const std::string &key, std::string &val) |
XrdSecAttr * | Get (const void *sigkey) |
std::vector< std::string > | Keys () |
void | List (XrdSecEntityAttrCB &attrCB) |
Friends | |
class | XrdSecEntity |
Definition at line 54 of file XrdSecEntityAttr.hh.
|
inline |
Constructor and Destructor.
xtra | - Pointer to the data for the implementation. |
Definition at line 130 of file XrdSecEntityAttr.hh.
|
inline |
Definition at line 132 of file XrdSecEntityAttr.hh.
bool XrdSecEntityAttr::Add | ( | const std::string & | key, |
const std::string & | val, | ||
bool | replace = false |
||
) |
Add a key-value attribute to this entity. If one exists it is replaced.
key | - Reference to the key. |
val | - Reference to the value. |
replace | - When true, any existing key-value is replaced. Otherwise, the add is not performed. |
Definition at line 59 of file XrdSecEntityAttr.cc.
References XrdSecEntityXtra::attrMap, and XrdSecEntityXtra::xMutex.
bool XrdSecEntityAttr::Add | ( | XrdSecAttr & | attr | ) |
Add an attribute object to this entity.
attr | - Reference to the attribute object. |
Definition at line 41 of file XrdSecEntityAttr.cc.
References XrdSecEntityXtra::attrVec, and XrdSecEntityXtra::xMutex.
Referenced by Macaroons::Authz::Access(), XrdAccSciTokens::Access(), XrdSecProtocolgsi::Authenticate(), XrdSecProtocolsss::Authenticate(), XrdAccEntity::PutEntity(), and XrdOfs::rename().
bool XrdSecEntityAttr::Get | ( | const std::string & | key, |
std::string & | val | ||
) |
Get an attribute key value associated with this entity.
key | - The reference to the key. |
val | - The reference to the string object to receive the value. |
Definition at line 102 of file XrdSecEntityAttr.cc.
References XrdSecEntityXtra::attrMap, and XrdSecEntityXtra::xMutex.
XrdSecAttr * XrdSecEntityAttr::Get | ( | const void * | sigkey | ) |
Get an attribute object associated with this entity.
sigkey | - A unique attribute object signature key. |
Definition at line 85 of file XrdSecEntityAttr.cc.
References XrdSecEntityXtra::attrVec, and XrdSecEntityXtra::xMutex.
Referenced by XrdAccAccess::Access(), XrdVomsMapfile::Apply(), XrdAccAccess::Audit(), XrdAccEntity::GetEntity(), and XrdThrottle::File::open().
std::vector< std::string > XrdSecEntityAttr::Keys | ( | ) |
Get all the keys for associated attribytes.
Definition at line 124 of file XrdSecEntityAttr.cc.
References XrdSecEntityXtra::attrMap, and XrdSecEntityXtra::xMutex.
void XrdSecEntityAttr::List | ( | XrdSecEntityAttrCB & | attrCB | ) |
List key-value pairs via iterative callback on passed ovject.
attrCB | - Reference to the callback object to receive list entries. |
Definition at line 140 of file XrdSecEntityAttr.cc.
References XrdSecEntityAttrCB::Attr(), XrdSecEntityXtra::attrMap, XrdSecEntityAttrCB::Delete, XrdSecEntityAttrCB::Stop, and XrdSecEntityXtra::xMutex.
Referenced by XrdSecEntity::Display().
|
friend |
Definition at line 57 of file XrdSecEntityAttr.hh.