#include <XrdSecInterface.hh>
Public Member Functions | |
virtual const char * | getParms (int &size, const char *hname=0)=0 |
virtual XrdSecProtocol * | getProtocol (const char *host, const struct sockaddr &hadr, const XrdSecCredentials *cred, XrdOucErrInfo *einfo)=0 |
XrdSecService () | |
Constructor. | |
virtual | ~XrdSecService () |
Destructor. |
Warning: The XrdSecService object as well as any objects returned by it should be MT-safe.
XrdSecService::XrdSecService | ( | ) | [inline] |
Constructor.
virtual XrdSecService::~XrdSecService | ( | ) | [inline, virtual] |
Destructor.
virtual const char* XrdSecService::getParms | ( | int & | size, | |
const char * | hname = 0 | |||
) | [pure virtual] |
Obtain security parameters to be sent to the client upon initial contact.
size | Where the length of the return parameters are to be placed. | |
hname | The client's host name which may be an IP address. It may also be a null pointer if the client's host is immaterial. |
virtual XrdSecProtocol* XrdSecService::getProtocol | ( | const char * | host, | |
const struct sockaddr & | hadr, | |||
const XrdSecCredentials * | cred, | |||
XrdOucErrInfo * | einfo | |||
) | [pure virtual] |
Obtain a protocol object suitable for authentication based on cred and possibly based on the hostname or host address, as needed.
host | The client's host name which may be an IP address. | |
hadr | The client host address encoded in sockaddr. | |
cred | The initial credentials supplied by the client, the pointer may be null if the client did not supply credentials. | |
einfo | The 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. |