#include <XrdOfsTPC.hh>
Classes | |
struct | Facts |
Public Member Functions | |
XrdOfsTPC () | |
XrdOfsTPC (const char *Url, const char *Org, const char *Lfn, const char *Pfn, const char *Cks=0, const char *Spr=0, const char *Tpr=0) | |
virtual | ~XrdOfsTPC () |
virtual void | Del () |
virtual int | Sync (XrdOucErrInfo *error) |
Static Public Member Functions | |
static const char * | AddAuth (const char *auth, const char *avar) |
static void | Allow (char *vDN, char *vGN, char *vHN, char *vVO) |
static int | Authorize (XrdOfsTPC **theTPC, Facts &Args, int isPLE=0) |
static const char * | credPath () |
static void | Init () |
static void | Init (XrdAccAuthorize *accP) |
static void | Require (const char *Auth, int RType) |
static int | Restrict (const char *Path) |
static int | Start () |
static int | Validate (XrdOfsTPC **theTPC, Facts &Args) |
Public Attributes | |
XrdOfsTPCInfo | Info |
Static Public Attributes | |
static const int | reqALL = 0 |
static const int | reqDST = 1 |
static const int | reqORG = 2 |
Static Protected Member Functions | |
static int | Death (Facts &Args, const char *eMsg, int eCode, int nomsg=0) |
static int | Fatal (Facts &Args, const char *eMsg, int eCode, int nomsg=0) |
static int | genOrg (const XrdSecEntity *client, char *Buff, int Blen) |
static int | getTTL (XrdOucEnv *Env) |
static int | Screen (Facts &Args, XrdOucTList *tP, int wasEnc=0) |
static char * | Verify (const char *Who, const char *Name, char *Buf, int Blen) |
Protected Attributes | |
char | inQ |
char | Refs |
Static Protected Attributes | |
static XrdOfsTPCAllow * | ALList = 0 |
static XrdOucTList * | AuthDst = 0 |
static XrdOucTList * | AuthOrg = 0 |
static char * | cPath = 0 |
static XrdAccAuthorize * | fsAuth = 0 |
static XrdOucPListAnchor * | RPList |
Definition at line 47 of file XrdOfsTPC.hh.
|
inline |
Definition at line 99 of file XrdOfsTPC.hh.
Referenced by XrdOfsTPCJob::XrdOfsTPCJob(), Authorize(), and Validate().
|
inline |
Definition at line 101 of file XrdOfsTPC.hh.
|
inlinevirtual |
Definition at line 107 of file XrdOfsTPC.hh.
|
static |
Definition at line 164 of file XrdOfsTPC.cc.
References XrdOfsTPCParms::fcAuth, XrdOfsTPCParms::fcMax, XrdOfsTPCParms::fcNum, and XrdSecPROTOIDSIZE.
|
static |
Definition at line 209 of file XrdOfsTPC.cc.
References ALList.
|
static |
Definition at line 221 of file XrdOfsTPC.cc.
References XrdOfsTPC(), XrdOfsTPCAuth::Add(), XrdSecEntity::addrInfo, ALList, AOP_Read, AuthDst, AuthOrg, XrdOfsTPCParms::Cfg, XrdOfsTPCAuth::Del(), XrdOfsTPC::Facts::Dst, XrdOfsTPC::Facts::Env, XrdOfsTPC::Facts::eRR, XrdOfsTPCAuth::Expired(), Fatal(), fsAuth, XrdOfsTPCAuth::Get(), XrdOucEnv::Get(), XrdOucErrInfo::getErrUser(), getTTL(), XrdOfsTPC::Facts::Lfn, XrdOfsTPCAllow::Match(), XrdNetAddrInfo::Name(), XrdOfsTPCAllow::Next, OfsEroute, OfsStats, XrdOfsTPC::Facts::Org, RPList, Screen(), SFS_ERROR, SFS_OK, XrdSecEntity::tident, XrdOucTPC::tpcDst, XrdOfsTPCParms::tpcOK, XrdOucTPC::tpcOrg, and XrdOfsTPC::Facts::Usr.
Referenced by XrdOfsFile::open().
|
inlinestatic |
|
staticprotected |
Definition at line 319 of file XrdOfsTPC.cc.
References XrdOfsTPCParms::Cfg, eMsg, Fatal(), XrdOfsTPC::Facts::Lfn, XrdOfsTPC::Facts::Pfn, and XrdOfsOss.
Referenced by Validate().
|
inlinevirtual |
|
staticprotected |
Definition at line 334 of file XrdOfsTPC.cc.
References eMsg, XrdOfsTPC::Facts::eRR, XrdOucErrInfo::getErrUser(), XrdOfsTPC::Facts::Lfn, OfsEroute, OfsStats, XrdOucErrInfo::setErrInfo(), and SFS_ERROR.
Referenced by XrdOfsTPCAuth::Add(), Authorize(), Death(), XrdOfsTPCAuth::Get(), and Screen().
|
staticprotected |
Definition at line 359 of file XrdOfsTPC.cc.
References XrdSecEntity::host, XrdSecEntity::tident, and Verify().
Referenced by XrdOfsTPCAuth::Add(), and Validate().
|
staticprotected |
Definition at line 396 of file XrdOfsTPC.cc.
References XrdOfsTPCParms::Cfg, XrdOucEnv::Get(), and XrdOucTPC::tpcTtl.
Referenced by Authorize().
|
static |
Definition at line 414 of file XrdOfsTPC.cc.
References XrdOfsTPCParms::Cfg, cPath, XrdOucEnv::Export(), XrdOfsTPCParms::fcAuth, and XrdOfsTPCParms::fcNum.
Referenced by XrdOfs::Configure(), and XrdOfsTPCAuth::RunTTL().
|
inlinestatic |
|
static |
Definition at line 445 of file XrdOfsTPC.cc.
References AuthDst, AuthOrg, XrdOfsTPCParms::encTPC, reqDST, and reqORG.
|
static |
Definition at line 465 of file XrdOfsTPC.cc.
|
staticprotected |
Definition at line 497 of file XrdOfsTPC.cc.
References Fatal(), XrdOucTList::next, OfsStats, XrdSecEntity::prot, XrdOucTList::text, and XrdOfsTPC::Facts::Usr.
Referenced by Authorize().
|
static |
Definition at line 520 of file XrdOfsTPC.cc.
References XrdOfsTPCParms::Cfg, XrdOfsTPCParms::encTPC, XrdOucEnv::Export(), XrdOfsTPCProg::Init(), RPList, XrdOfsTPCAuth::RunTTL(), and XrdOfsTPCParms::tpcOK.
|
inlinevirtual |
|
static |
Definition at line 550 of file XrdOfsTPC.cc.
References XrdOfsTPC(), XrdOfsTPCParms::Cfg, XrdOucTPC::cgiD2Src(), XrdOucTPC::copyCGI(), XrdSecEntity::creds, XrdSecEntity::credslen, Death(), XrdOfsTPC::Facts::Env, XrdOfsTPCParms::fcAuth, XrdOfsTPCParms::fcNum, genOrg(), XrdOucEnv::Get(), XrdOfsTPCParms::gsiPKH, Info, XrdOfsTPCInfo::isDest(), XrdOfsTPC::Facts::Key, XrdOfsTPC::Facts::Lfn, XrdOfsTPC::Facts::Pfn, XrdSecEntity::prot, XrdOucEnv::Put(), XrdOfsTPCInfo::SetCreds(), XrdOfsTPCInfo::SetRPath(), XrdOfsTPCInfo::SetStreams(), SFS_OK, XrdSecEntity::tident, XrdOucTPC::tpcCks, XrdOucTPC::tpcDlg, XrdOucTPC::tpcLfn, XrdOfsTPCParms::tpcOK, XrdOucTPC::tpcSgi, XrdOucTPC::tpcSpr, XrdOucTPC::tpcSrc, XrdOucTPC::tpcStr, XrdOucTPC::tpcTpr, and XrdOfsTPC::Facts::Usr.
Referenced by XrdOfsFile::open().
|
staticprotected |
Definition at line 683 of file XrdOfsTPC.cc.
References XrdNetAddrInfo::Name(), and XrdNetAddr::Set().
Referenced by genOrg().
|
staticprotected |
Definition at line 126 of file XrdOfsTPC.hh.
Referenced by Allow(), and Authorize().
|
staticprotected |
Definition at line 122 of file XrdOfsTPC.hh.
Referenced by Authorize(), and Require().
|
staticprotected |
Definition at line 123 of file XrdOfsTPC.hh.
Referenced by Authorize(), and Require().
|
staticprotected |
Definition at line 124 of file XrdOfsTPC.hh.
Referenced by credPath(), and Init().
|
staticprotected |
Definition at line 120 of file XrdOfsTPC.hh.
Referenced by Authorize(), and Init().
XrdOfsTPCInfo XrdOfsTPC::Info |
Definition at line 109 of file XrdOfsTPC.hh.
Referenced by XrdOfsTPC(), XrdOfsTPCAuth::Add(), XrdOfsTPCJob::Del(), XrdOfsTPCJob::Done(), XrdOfsTPCAuth::Expired(), XrdOfsTPCJob::Sync(), and Validate().
|
protected |
Definition at line 130 of file XrdOfsTPC.hh.
Referenced by XrdOfsTPC(), XrdOfsTPC(), XrdOfsTPCAuth::Add(), XrdOfsTPCAuth::Del(), XrdOfsTPCJob::Del(), XrdOfsTPCJob::Done(), and XrdOfsTPCJob::Sync().
|
protected |
Definition at line 129 of file XrdOfsTPC.hh.
Referenced by XrdOfsTPC(), XrdOfsTPC(), XrdOfsTPCAuth::Del(), XrdOfsTPCJob::Del(), XrdOfsTPCJob::Done(), and XrdOfsTPCJob::Sync().
|
static |
Definition at line 85 of file XrdOfsTPC.hh.
|
static |
Definition at line 86 of file XrdOfsTPC.hh.
Referenced by Require().
|
static |
Definition at line 87 of file XrdOfsTPC.hh.
Referenced by Require().
|
staticprotected |
Definition at line 127 of file XrdOfsTPC.hh.
Referenced by Authorize(), Restrict(), and Start().