XrdSecProtector Class Reference

#include <XrdSecProtector.hh>

List of all members.

Public Types

enum  lrType { isLcl = 0, isRmt = 1, isLR = 2 }

Public Member Functions

virtual bool Config (const XrdSecProtectParms &lclParms, const XrdSecProtectParms &rmtParms, XrdSysLogger &logr)
virtual const char * LName (XrdSecProtectParms::secLevel level)
virtual XrdSecProtectNew4Client (XrdSecProtocol &aprot, const ServerResponseReqs_Protocol &inReqs, unsigned int reqLen)
virtual XrdSecProtectNew4Server (XrdSecProtocol &aprot, int plvl)
virtual int ProtResp (ServerResponseReqs_Protocol &resp, XrdNetAddrInfo &nai, int pver)
virtual ~XrdSecProtector ()
 Destructor.

Protected Member Functions

 XrdSecProtector ()

Private Member Functions

void Config (const XrdSecProtectParms &parms, ServerResponseReqs_Protocol &reqs)

Member Enumeration Documentation

Enumerator:
isLcl 
isRmt 
isLR 

Constructor & Destructor Documentation

virtual XrdSecProtector::~XrdSecProtector (  )  [inline, virtual]

Destructor.

XrdSecProtector::XrdSecProtector (  )  [inline, protected]

Member Function Documentation

void XrdSecProtector::Config ( const XrdSecProtectParms parms,
ServerResponseReqs_Protocol reqs 
) [private]
virtual bool XrdSecProtector::Config ( const XrdSecProtectParms lclParms,
const XrdSecProtectParms rmtParms,
XrdSysLogger logr 
) [virtual]

Configure protect for server-side use (not need for client)

Parameters:
lclParms Reference to local client parameters.
rmtParms Reference to remote client parameters.
logr Reference to the message logging object.
Returns:
true upon success and false upon failure.
virtual const char* XrdSecProtector::LName ( XrdSecProtectParms::secLevel  level  )  [virtual]

Convert protection level to its corresponding name.

Parameters:
level The level value.
Returns:
Pointer to the name of the level.
virtual XrdSecProtect* XrdSecProtector::New4Client ( XrdSecProtocol aprot,
const ServerResponseReqs_Protocol inReqs,
unsigned int  reqLen 
) [virtual]

Obtain a new instance of a protection object based on protocol response. This is meant to be used client-side.

Parameters:
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 occured.
inReqs Reference to the security information returned in the kXR_protocol request.
reqLen The actual length of inReqs (is validated).
Returns:
Pointer to a security object upon success and nil if security is not needed.
virtual XrdSecProtect* XrdSecProtector::New4Server ( XrdSecProtocol aprot,
int  plvl 
) [virtual]

Obtain a new instance of a security object based on security setting for this object. This is meant to be used severt-side.

Parameters:
aprot Sets the authentication protocol used and is the protocol used to secure requests. It must be supplied.
plvl The client's protocol level.
Returns:
Pointer to a security object upon success and nil if security is not needed.
virtual int XrdSecProtector::ProtResp ( ServerResponseReqs_Protocol resp,
XrdNetAddrInfo nai,
int  pver 
) [virtual]

Obtain the proper kXR_protocol response (server-side only)

Parameters:
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.
Returns:
The length of the protocol response security information.

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

Generated on 16 Jul 2020 for xrootd by  doxygen 1.6.1