XrdSecEntityAttr Class Reference

#include <XrdSecEntityAttr.hh>

Inheritance diagram for XrdSecEntityAttr:
Inheritance graph
[legend]
Collaboration diagram for XrdSecEntityAttr:
Collaboration graph
[legend]

List of all members.

Public Member Functions

bool Add (XrdSecAttr &attr)
bool Add (const std::string &key, const std::string &val, bool replace=false)
XrdSecAttrGet (const void *sigkey)
bool Get (const std::string &key, std::string &val)
std::vector< std::string > Keys ()
void List (XrdSecEntityAttrCB &attrCB)
 XrdSecEntityAttr (XrdSecEntityXtra *xtra)
 ~XrdSecEntityAttr ()

Private Attributes

XrdSecEntityXtraentXtra

Friends

class XrdSecEntity

Constructor & Destructor Documentation

XrdSecEntityAttr::XrdSecEntityAttr ( XrdSecEntityXtra xtra  )  [inline]

Constructor and Destructor.

Parameters:
xtra - Pointer to the data for the implementation.
XrdSecEntityAttr::~XrdSecEntityAttr (  )  [inline]

Member Function Documentation

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.

Parameters:
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.
Returns:
True, the key-value was added or replaced.
False, the key already exists so he value was not added.
bool XrdSecEntityAttr::Add ( XrdSecAttr attr  ) 

Add an attribute object to this entity.

Parameters:
attr - Reference to the attribute object.
Returns:
True, the object was added.
False, the object was not added because such an object exists.
bool XrdSecEntityAttr::Get ( const std::string &  key,
std::string &  val 
)

Get an attribute key value associated with this entity.

Parameters:
key - The reference to the key.
val - The reference to the string object to receive the value.
Returns:
Upon success true is returned. If the key does not exist, false is returned and the val object remains unchanged.
XrdSecAttr* XrdSecEntityAttr::Get ( const void *  sigkey  ) 

Get an attribute object associated with this entity.

Parameters:
sigkey - A unique attribute object signature key.
Returns:
Upon success a pointer to the attribute object is returned. Otherwise, a nil pointer is returned.
std::vector<std::string> XrdSecEntityAttr::Keys (  ) 

Get all the keys for associated attribytes.

Returns:
A vector containing all of the keys.
void XrdSecEntityAttr::List ( XrdSecEntityAttrCB attrCB  ) 

List key-value pairs via iterative callback on passed ovject.

Parameters:
attrCB - Reference to the callback object to receive list entries.

Friends And Related Function Documentation

friend class XrdSecEntity [friend]

Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 7 Jul 2020 for xrootd by  doxygen 1.6.1