![]() |
XRootD
|
#include <XrdSecEntity.hh>
Public Member Functions | |
XrdSecEntity (const char *spName=0) | |
~XrdSecEntity () | |
void | Display (XrdSysError &mDest) |
void | Reset (const char *spV=0) |
Public Attributes | |
XrdNetAddrInfo * | addrInfo |
Entity's connection details. More... | |
char * | caps |
Entity's capabilities. More... | |
char * | creds |
Raw entity credentials or cert. More... | |
int | credslen |
Length of the 'creds' data. More... | |
XrdSecEntityAttr * | eaAPI |
non-const API to attributes More... | |
char * | endorsements |
Protocol specific endorsements. More... | |
void * | future [2] |
Reserved for future expansion. More... | |
gid_t | gid |
Unix gid or 0 if none. More... | |
char * | grps |
Entity's group name(s) More... | |
char * | host |
Entity's host name dnr dependent. More... | |
char * | moninfo |
Information for monitoring. More... | |
char * | name |
Entity's name. More... | |
const char * | pident |
Trace identifier (originator) More... | |
char | prot [XrdSecPROTOIDSIZE] |
Auth protocol used (e.g. krb5) More... | |
char | prox [XrdSecPROTOIDSIZE] |
Auth extractor used (e.g. xrdvoms) More... | |
char * | role |
Entity's role(s) More... | |
XrdSecMonitor * | secMon |
If !0 security monitoring enabled. More... | |
void * | sessvar |
const char * | tident |
Trace identifier always preset. More... | |
unsigned int | ueid |
Unique ID of entity instance. More... | |
uid_t | uid |
Unix uid or 0 if none. More... | |
char * | vorg |
Entity's virtual organization(s) More... | |
Definition at line 64 of file XrdSecEntity.hh.
XrdSecEntity::XrdSecEntity | ( | const char * | spName = 0 | ) |
Constructor.
spName | - The name of the security protocol. |
Definition at line 40 of file XrdSecEntity.cc.
XrdSecEntity::~XrdSecEntity | ( | ) |
Definition at line 49 of file XrdSecEntity.cc.
References eaAPI.
void XrdSecEntity::Display | ( | XrdSysError & | mDest | ) |
Dislay the contents of this object for debugging purposes.
mDest | - Reference to the message object to use. |
Definition at line 58 of file XrdSecEntity.cc.
References caps, credslen, eaAPI, gid, grps, host, XrdSecEntityAttr::List(), name, XrdSecEntityAttrCB::Next, pident, prot, role, XrdSysError::Say(), tident, ueid, uid, vorg, and XrdSecPROTOIDSIZE.
Referenced by XrdHttpProtocol::Process().
void XrdSecEntity::Reset | ( | const char * | spV = 0 | ) |
Reset object to it's pristine self.
spV | - The name of the security protocol. |
Definition at line 141 of file XrdSecEntity.cc.
References eaAPI, and XrdSecEntityXtra::Reset().
XrdNetAddrInfo* XrdSecEntity::addrInfo |
Entity's connection details.
Definition at line 80 of file XrdSecEntity.hh.
Referenced by XrdTpc::PMarkManager::SocketInfo::SocketInfo(), XrdSecProtocolgsi::XrdSecProtocolgsi(), XrdSecProtocolkrb5::XrdSecProtocolkrb5(), XrdSecProtocolpwd::XrdSecProtocolpwd(), XrdSecProtocolunix::XrdSecProtocolunix(), XrdSecProtocolztn::XrdSecProtocolztn(), XrdAccSciTokens::Access(), XrdCmsSecurity::Authenticate(), XrdSecProtocolhost::Authenticate(), XrdDigAuth::Authorize(), XrdOfsTPC::Authorize(), XrdNetPMarkCfg::Begin(), XrdTpc::PMarkManager::beginPMarks(), XrdSsiFileResource::Init(), XrdCmsRedirLocal::Locate(), XrdHttpProtocol::Match(), XrdXrootdProtocol::Match(), XrdSecProtector::New4Server(), and XrdAccAccess::Resolve().
char* XrdSecEntity::caps |
Entity's capabilities.
Definition at line 74 of file XrdSecEntity.hh.
Referenced by XrdSecProtocolsss::Authenticate(), XrdSecProtocolgsi::Delete(), and Display().
char* XrdSecEntity::creds |
Raw entity credentials or cert.
Definition at line 77 of file XrdSecEntity.hh.
Referenced by XrdSecProtocolztn::~XrdSecProtocolztn(), Macaroons::Authz::Access(), XrdAccSciTokens::Access(), XrdHttpReq::appendOpaque(), XrdSecProtocolgsi::Authenticate(), XrdSecProtocolsss::Authenticate(), XrdSecProtocolztn::Authenticate(), XrdSecProtocolgsi::Delete(), XrdVomsHttp::GetSecData(), XrdSsiFileResource::Init(), XrdHttpProtocol::Process(), XrdOfsTPC::Validate(), XrdVomsFun::VOMSFun(), and XrdSecgsiAuthzKey().
int XrdSecEntity::credslen |
Length of the 'creds' data.
Definition at line 78 of file XrdSecEntity.hh.
Referenced by Macaroons::Authz::Access(), XrdAccSciTokens::Access(), XrdHttpReq::appendOpaque(), XrdSecProtocolgsi::Authenticate(), XrdSecProtocolsss::Authenticate(), XrdSecProtocolztn::Authenticate(), XrdSecProtocolgsi::Delete(), Display(), XrdSsiFileResource::Init(), XrdHttpProtocol::Process(), XrdOfsTPC::Validate(), XrdVomsFun::VOMSFun(), and XrdSecgsiAuthzKey().
XrdSecEntityAttr* XrdSecEntity::eaAPI |
non-const API to attributes
Definition at line 92 of file XrdSecEntity.hh.
Referenced by ~XrdSecEntity(), Macaroons::Authz::Access(), XrdAccSciTokens::Access(), XrdAccAccess::Access(), XrdVomsMapfile::Apply(), XrdAccAccess::Audit(), XrdSecProtocolgsi::Authenticate(), XrdSecProtocolsss::Authenticate(), Display(), XrdAccEntity::GetEntity(), XrdThrottle::File::open(), XrdAccEntity::PutEntity(), XrdOfs::rename(), and Reset().
char* XrdSecEntity::endorsements |
Protocol specific endorsements.
Definition at line 75 of file XrdSecEntity.hh.
Referenced by XrdHttpReq::appendOpaque(), XrdSecProtocolgsi::Authenticate(), XrdSecProtocolsss::Authenticate(), XrdSecProtocolgsi::Delete(), XrdSsiFileResource::Init(), XrdHttpProtocol::Process(), and XrdVomsFun::VOMSFun().
void* XrdSecEntity::future[2] |
Reserved for future expansion.
Definition at line 90 of file XrdSecEntity.hh.
gid_t XrdSecEntity::gid |
Unix gid or 0 if none.
Definition at line 87 of file XrdSecEntity.hh.
Referenced by XrdSecProtocolsss::Authenticate(), Display(), and XrdFfsMisc_xrd_secsss_register().
char* XrdSecEntity::grps |
Entity's group name(s)
Definition at line 73 of file XrdSecEntity.hh.
Referenced by XrdAccSciTokens::Access(), XrdHttpReq::appendOpaque(), XrdVomsMapfile::Apply(), XrdSecProtocolgsi::Authenticate(), XrdSecProtocolsss::Authenticate(), XrdSecProtocolunix::Authenticate(), XrdDigAuth::Authorize(), XrdSecProtocolgsi::Delete(), Display(), XrdSsiFileResource::Init(), XrdOfsTPCAllow::Match(), XrdSciTokensMon::Mon_Report(), XrdXrootdProtocol::MonAuth(), XrdHttpProtocol::Process(), XrdVomsFun::VOMSFun(), XrdFfsMisc_xrd_secsss_register(), and XrdSecgsiAuthzFun().
char* XrdSecEntity::host |
Entity's host name dnr dependent.
Definition at line 70 of file XrdSecEntity.hh.
Referenced by XrdHttpExtReq::XrdHttpExtReq(), XrdSecProtocolgsi::XrdSecProtocolgsi(), XrdSecProtocolkrb5::XrdSecProtocolkrb5(), XrdSecProtocolpwd::XrdSecProtocolpwd(), XrdSecProtocolunix::XrdSecProtocolunix(), XrdSecProtocolztn::XrdSecProtocolztn(), XrdSecProtocolztn::~XrdSecProtocolztn(), XrdHttpReq::appendOpaque(), XrdAccAccess::Audit(), XrdSecProtocolhost::Authenticate(), XrdSecProtocolsss::Authenticate(), calcHashes(), XrdSecProtocolgsi::Delete(), XrdSecProtocolkrb5::Delete(), XrdSecProtocolpwd::Delete(), Display(), XrdOfsTPC::genOrg(), XrdSsiFileResource::Init(), main(), XrdXrootdProtocol::Match(), XrdXrootdProtocol::MonAuth(), XrdHttpProtocol::Process(), and XrdAccAccess::Resolve().
char* XrdSecEntity::moninfo |
Information for monitoring.
Definition at line 76 of file XrdSecEntity.hh.
Referenced by XrdHttpExtReq::XrdHttpExtReq(), XrdHttpReq::appendOpaque(), XrdSecProtocolgsi::Authenticate(), calcHashes(), XrdSecProtocolgsi::Delete(), XrdXrootdProtocol::MonAuth(), and XrdHttpProtocol::Process().
char* XrdSecEntity::name |
Entity's name.
Definition at line 69 of file XrdSecEntity.hh.
Referenced by XrdSecProtocolkrb5::XrdSecProtocolkrb5(), XrdSecProtocolunix::XrdSecProtocolunix(), XrdSecProtocolztn::XrdSecProtocolztn(), XrdSecProtocolztn::~XrdSecProtocolztn(), XrdAccAccess::Access(), XrdHttpReq::appendOpaque(), XrdVomsMapfile::Apply(), XrdAccAccess::Audit(), XrdCmsSecurity::Authenticate(), XrdSecProtocolgsi::Authenticate(), XrdSecProtocolpwd::Authenticate(), XrdSecProtocolsss::Authenticate(), XrdSecProtocolunix::Authenticate(), XrdSecProtocolztn::Authenticate(), XrdDigAuth::Authorize(), calcHashes(), XrdSecProtocolgsi::Delete(), Display(), XrdSecProtocolgsi::getCredentials(), XrdSsiFileResource::Init(), main(), XrdOfsTPCAllow::Match(), XrdXrootdProtocol::MonAuth(), XrdThrottle::File::open(), XrdHttpProtocol::Process(), XrdAccSciTokens::Validate(), XrdFfsMisc_xrd_secsss_register(), and XrdSecgsiAuthzFun().
const char* XrdSecEntity::pident |
Trace identifier (originator)
Definition at line 82 of file XrdSecEntity.hh.
Referenced by XrdSecProtocolsss::Authenticate(), and Display().
char XrdSecEntity::prot[XrdSecPROTOIDSIZE] |
Auth protocol used (e.g. krb5)
Definition at line 67 of file XrdSecEntity.hh.
Referenced by Macaroons::Authz::Access(), XrdAccSciTokens::Access(), XrdAccAccess::Audit(), XrdSecProtocolhost::Authenticate(), XrdSecProtocolgsi::Authenticate(), XrdSecProtocolkrb5::Authenticate(), XrdSecProtocolpwd::Authenticate(), XrdSecProtocolsss::Authenticate(), XrdSecProtocolunix::Authenticate(), XrdDigAuth::Authorize(), Display(), XrdVomsHttp::GetSecData(), XrdSsiFileResource::Init(), main(), XrdXrootdProtocol::Match(), XrdXrootdProtocol::MonAuth(), XrdSecProtector::New4Server(), XrdHttpProtocol::Process(), XrdOfsTPC::Screen(), and XrdOfsTPC::Validate().
char XrdSecEntity::prox[XrdSecPROTOIDSIZE] |
Auth extractor used (e.g. xrdvoms)
Definition at line 68 of file XrdSecEntity.hh.
Referenced by XrdVomsFun::VOMSFun().
char* XrdSecEntity::role |
Entity's role(s)
Definition at line 72 of file XrdSecEntity.hh.
Referenced by XrdAccSciTokens::Access(), XrdHttpReq::appendOpaque(), XrdVomsMapfile::Apply(), XrdSecProtocolgsi::Authenticate(), XrdSecProtocolsss::Authenticate(), XrdDigAuth::Authorize(), XrdSecProtocolgsi::Delete(), Display(), XrdSsiFileResource::Init(), XrdSciTokensMon::Mon_Report(), XrdXrootdProtocol::MonAuth(), XrdHttpProtocol::Process(), and XrdVomsFun::VOMSFun().
XrdSecMonitor* XrdSecEntity::secMon |
If !0 security monitoring enabled.
Definition at line 89 of file XrdSecEntity.hh.
Referenced by XrdAccSciTokens::Access(), XrdSciTokensMon::Mon_Report(), and XrdXrootdProtocol::MonAuth().
void* XrdSecEntity::sessvar |
Plugin settable storage pointer, now deprecated. Use settable attribute objects instead.
Definition at line 83 of file XrdSecEntity.hh.
const char* XrdSecEntity::tident |
Trace identifier always preset.
Definition at line 81 of file XrdSecEntity.hh.
Referenced by XrdPssUrlInfo::XrdPssUrlInfo(), XrdAccAccess::Audit(), XrdSecProtocolgsi::Authenticate(), XrdSecProtocolpwd::Authenticate(), XrdOfsTPC::Authorize(), XrdNetPMarkCfg::Begin(), XrdOfsPrepGPIReal::PrepGPI::begin(), XrdOfsPrepGPIReal::PrepGPI::cancel(), XrdPssSys::Connect(), XrdPssSys::Disc(), Display(), XrdOfsTPC::genOrg(), XrdAccEntity::GetEntity(), XrdSecProtector::New4Server(), XrdOfsPrepGPIReal::PrepGPI::query(), and XrdOfsTPC::Validate().
unsigned int XrdSecEntity::ueid |
Unique ID of entity instance.
Definition at line 79 of file XrdSecEntity.hh.
Referenced by XrdPssUrlInfo::XrdPssUrlInfo(), XrdPssSys::Connect(), XrdPssSys::Disc(), and Display().
uid_t XrdSecEntity::uid |
Unix uid or 0 if none.
Definition at line 86 of file XrdSecEntity.hh.
Referenced by XrdSecProtocolsss::Authenticate(), Display(), and XrdFfsMisc_xrd_secsss_register().
char* XrdSecEntity::vorg |
Entity's virtual organization(s)
Definition at line 71 of file XrdSecEntity.hh.
Referenced by XrdHttpExtReq::XrdHttpExtReq(), XrdAccSciTokens::Access(), XrdHttpReq::appendOpaque(), XrdVomsMapfile::Apply(), XrdSecProtocolgsi::Authenticate(), XrdSecProtocolsss::Authenticate(), XrdDigAuth::Authorize(), calcHashes(), XrdSecProtocolgsi::Delete(), Display(), XrdSsiFileResource::Init(), XrdOfsTPCAllow::Match(), XrdSciTokensMon::Mon_Report(), XrdXrootdProtocol::MonAuth(), XrdThrottle::File::open(), XrdHttpProtocol::Process(), XrdVomsFun::VOMSFun(), and XrdSecgsiAuthzFun().