xrootd
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
XrdSecServer Class Reference

#include <XrdSecServer.hh>

Inheritance diagram for XrdSecServer:
Inheritance graph
[legend]
Collaboration diagram for XrdSecServer:
Collaboration graph
[legend]

Public Member Functions

const char * getParms (int &size, XrdNetAddrInfo *endPoint=0)
 
XrdSecProtocolgetProtocol (const char *host, XrdNetAddrInfo &endPoint, const XrdSecCredentials *cred, XrdOucErrInfo *einfo=0)
 
int Configure (const char *cfn)
 
 XrdSecServer (XrdSysLogger *lp)
 
 ~XrdSecServer ()
 

Private Member Functions

int add2token (XrdSysError &erp, char *, char **, int &, XrdSecPMask_t &)
 
int ConfigFile (const char *cfn)
 
int ConfigXeq (char *var, XrdOucStream &Config, XrdSysError &Eroute)
 
int ProtBind_Complete (XrdSysError &Eroute)
 
int xlevel (XrdOucStream &Config, XrdSysError &Eroute)
 
int xpbind (XrdOucStream &Config, XrdSysError &Eroute)
 
int xpparm (XrdOucStream &Config, XrdSysError &Eroute)
 
int xprot (XrdOucStream &Config, XrdSysError &Eroute)
 
int xtrace (XrdOucStream &Config, XrdSysError &Eroute)
 
- Private Member Functions inherited from XrdSecService
 XrdSecService ()
 Constructor. More...
 
virtual ~XrdSecService ()
 Destructor. More...
 

Private Attributes

XrdSysError eDest
 
XrdOucTraceSecTrace
 
XrdSecProtBind * bpFirst
 
XrdSecProtBind * bpLast
 
XrdSecProtBind * bpDefault
 
char * SToken
 
char * STBuff
 
int STBlen
 
int Enforce
 
int implauth
 

Static Private Attributes

static XrdSecPManager PManager
 

Constructor & Destructor Documentation

◆ XrdSecServer()

XrdSecServer::XrdSecServer ( XrdSysLogger lp)

◆ ~XrdSecServer()

XrdSecServer::~XrdSecServer ( )
inline

Member Function Documentation

◆ add2token()

int XrdSecServer::add2token ( XrdSysError erp,
char *  ,
char **  ,
int &  ,
XrdSecPMask_t  
)
private

◆ ConfigFile()

int XrdSecServer::ConfigFile ( const char *  cfn)
private

◆ Configure()

int XrdSecServer::Configure ( const char *  cfn)

◆ ConfigXeq()

int XrdSecServer::ConfigXeq ( char *  var,
XrdOucStream Config,
XrdSysError Eroute 
)
private

◆ getParms()

const char* XrdSecServer::getParms ( int &  size,
XrdNetAddrInfo endPoint = 0 
)
virtual

Obtain security parameters to be sent to the client upon initial contact.

Parameters
sizeWhere the length of the return parameters are to be placed.
endPointThe client's address information. It may also be a null pointer if the client's host is immaterial.
Returns
EITHER The address of the parameter string (which may be host-specific if hname was supplied). The length of the string must be returned in size parameter. OR A null pointer if authentication need not occur for the client. The size parameter should be set to zero as well.

Implements XrdSecService.

◆ getProtocol()

XrdSecProtocol* XrdSecServer::getProtocol ( const char *  host,
XrdNetAddrInfo endPoint,
const XrdSecCredentials cred,
XrdOucErrInfo einfo = 0 
)
virtual

Obtain a protocol object suitable for authentication based on cred and possibly based on the hostname or host address, as needed.

Parameters
hostThe client's host name or the IP address as text. An IP may be supplied if the host address is not resolvable or resolution has been suppressed (i.e. nodnr). Use endPoint to get the hostname if it's actually needed.
endPointthe XrdNetAddrInfo object describing the client end-point.
credThe initial credentials supplied by the client, the pointer may be null if the client did not supply credentials.
einfoThe structure to record any error messages. These are normally sent to the client. If einfo is a null pointer, the messages should be sent to standard error via an XrdSysError object using the supplied XrdSysLogger when the the plugin was initialized.
Returns
Success: Address of protocol object to be used for authentication. If cred was null, a host protocol object shouldpo be returned if so allowed. Failure: Null, no protocol can be returned. The einfo parameter, if supplied, has the reason.

Implements XrdSecService.

◆ ProtBind_Complete()

int XrdSecServer::ProtBind_Complete ( XrdSysError Eroute)
private

◆ xlevel()

int XrdSecServer::xlevel ( XrdOucStream Config,
XrdSysError Eroute 
)
private

◆ xpbind()

int XrdSecServer::xpbind ( XrdOucStream Config,
XrdSysError Eroute 
)
private

◆ xpparm()

int XrdSecServer::xpparm ( XrdOucStream Config,
XrdSysError Eroute 
)
private

◆ xprot()

int XrdSecServer::xprot ( XrdOucStream Config,
XrdSysError Eroute 
)
private

◆ xtrace()

int XrdSecServer::xtrace ( XrdOucStream Config,
XrdSysError Eroute 
)
private

Member Data Documentation

◆ bpDefault

XrdSecProtBind* XrdSecServer::bpDefault
private

◆ bpFirst

XrdSecProtBind* XrdSecServer::bpFirst
private

◆ bpLast

XrdSecProtBind* XrdSecServer::bpLast
private

◆ eDest

XrdSysError XrdSecServer::eDest
private

◆ Enforce

int XrdSecServer::Enforce
private

◆ implauth

int XrdSecServer::implauth
private

◆ PManager

XrdSecPManager XrdSecServer::PManager
staticprivate

◆ SecTrace

XrdOucTrace* XrdSecServer::SecTrace
private

◆ STBlen

int XrdSecServer::STBlen
private

◆ STBuff

char* XrdSecServer::STBuff
private

◆ SToken

char* XrdSecServer::SToken
private

The documentation for this class was generated from the following file: