![]() |
XRootD
|
#include <XrdSecProtector.hh>
Public Types | |
enum | lrType { isLcl =0 , isRmt =1 , isLR =2 } |
Public Member Functions | |
virtual | ~XrdSecProtector () |
Destructor. More... | |
virtual bool | Config (const XrdSecProtectParms &lclParms, const XrdSecProtectParms &rmtParms, XrdSysLogger &logr) |
virtual const char * | LName (XrdSecProtectParms::secLevel level) |
virtual XrdSecProtect * | New4Client (XrdSecProtocol &aprot, const ServerResponseReqs_Protocol &inReqs, unsigned int reqLen) |
virtual XrdSecProtect * | New4Server (XrdSecProtocol &aprot, int plvl) |
virtual int | ProtResp (ServerResponseReqs_Protocol &resp, XrdNetAddrInfo &nai, int pver) |
Protected Member Functions | |
XrdSecProtector () | |
Definition at line 72 of file XrdSecProtector.hh.
|
inlinevirtual |
|
inlineprotected |
Definition at line 156 of file XrdSecProtector.hh.
|
virtual |
Configure protect for server-side use (not need for client)
lclParms | Reference to local client parameters. |
rmtParms | Reference to remote client parameters. |
logr | Reference to the message logging object. |
Definition at line 100 of file XrdSecProtector.cc.
References XrdSecProtectParms::force, isLcl, isRmt, XrdSecProtectParms::level, XrdSysError::logger(), XrdSecProtectParms::opts, XrdSecProtectParms::relax, XrdCms::Say, XrdSecProtectParms::secNone, and XrdSecProtect::SetProtection().
Referenced by XrdSecServer::Configure().
|
virtual |
Convert protection level to its corresponding name.
level | The level value. |
Definition at line 182 of file XrdSecProtector.cc.
References XrdSecProtectParms::secNone, and XrdSecProtectParms::secPedantic.
Referenced by XrdSecServer::Configure().
|
virtual |
Obtain a new instance of a protection object based on protocol response. This is meant to be used client-side.
aprot | Sets the authentication protocol used and is the protocol used to secure requests. It must be supplied. Security is meaningless unless successful authentication has occurred. |
inReqs | Reference to the security information returned in the kXR_protocol request. |
reqLen | The actual length of inReqs (is validated). |
Definition at line 202 of file XrdSecProtector.cc.
References XrdSecProtocol::getKey(), kXR_secNone, kXR_secOFrce, ServerResponseReqs_Protocol::seclvl, ServerResponseReqs_Protocol::secopt, ServerResponseReqs_Protocol::secvsz, and XrdSecProtect::SetProtection().
Referenced by XrdSecGetProtection().
|
virtual |
Obtain a new instance of a security object based on security setting for this object. This is meant to be used severt-side.
aprot | Sets the authentication protocol used and is the protocol used to secure requests. It must be supplied. |
plvl | The client's protocol level. |
Definition at line 239 of file XrdSecProtector.cc.
References XrdSecEntity::addrInfo, XrdSysError::Emsg(), XrdSecProtocol::Entity, XrdSecProtocol::getKey(), XrdNetIF::InDomain(), isLcl, isRmt, kXR_PROTSIGNVERSION, XrdSecEntity::prot, XrdCms::Say, XrdSecEntity::tident, and XrdSecPROTOIDSIZE.
|
virtual |
Obtain the proper kXR_protocol response (server-side only)
resp | Reference to the place where the response is to be placed. |
nai | Reference to the client's network address. |
pver | Client's protocol version in host byte order. |
Definition at line 292 of file XrdSecProtector.cc.
References XrdNetIF::InDomain(), isLcl, and isRmt.