#include <XrdSecsssCon.hh>
Definition at line 45 of file XrdSecsssCon.hh.
◆ XrdSecsssCon()
XrdSecsssCon::XrdSecsssCon |
( |
| ) |
|
|
inline |
◆ ~XrdSecsssCon()
virtual XrdSecsssCon::~XrdSecsssCon |
( |
| ) |
|
|
inlinevirtual |
◆ Cleanup()
virtual void XrdSecsssCon::Cleanup |
( |
const std::set< std::string > & | Contacts, |
|
|
const XrdSecEntity & | Entity ) |
|
pure virtual |
Cleanup connections established by the passed entity.
- Parameters
-
Contacts | Reference to a set of connections created by the entity. Each entry in the form of 'user[:pswd]@host:port'. |
Entity | Reference to the entity object responsible for the contacts. |
- Note
- 1) This object is passed to the XrdSecsssID constructor. 2) It is expected that the callee will disconnect each connection. 3) Upon return the Contacts and Entity objects are deleted.
◆ Contact()
bool XrdSecsssCon::Contact |
( |
const std::string & | lgnid, |
|
|
const std::string & | hostID ) |
Add a contact for the indicated loginid entity.
- Parameters
-
lgnid | - The loginid used to to register an Entity via XrdSecsssID. |
hostID | - The hostID (i.e. lgnid[:pswd]@host:port). |
- Returns
- true - Contact added.
-
false - Contact not added as the lgnid is not registered.
Definition at line 44 of file XrdSecsssCon.cc.
45{
46 EntityMap::iterator it;
47 char *colon, lid[256];
48 size_t n;
49
50
51
53
54
55
56 n = hostID.find('@');
57 if (n == std::string::npos || n < 1 || n >= sizeof(lid)) return false;
58 strncpy(lid, hostID.c_str(), n);
59 lid[n] = 0;
60 if ((colon = index(lid, ':')))
61 {if (colon == lid) return false;
62 *colon = 0;
63 }
64
65
66
70
71
72
73 it->second->AddContact(hostID);
75 return true;
76}
References XrdSecsssMap::conTrack, XrdSecsssMap::Registry, and XrdSecsssMap::sssMutex.
The documentation for this class was generated from the following files: