xrootd
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
XrdSecProtocolhost Class Reference

#include <XrdSecProtocolhost.hh>

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

Public Member Functions

int Authenticate (XrdSecCredentials *cred, XrdSecParameters **parms, XrdOucErrInfo *einfo=0)
 
XrdSecCredentialsgetCredentials (XrdSecParameters *parm=0, XrdOucErrInfo *einfo=0)
 
const char * getParms (int &psize, const char *hname=0)
 
void Delete ()
 Delete the protocol object. DO NOT use C++ delete() on this object.
 
 XrdSecProtocolhost (const char *host, XrdNetAddrInfo &endPoint)
 
 ~XrdSecProtocolhost ()
 
- Public Member Functions inherited from XrdSecProtocol
virtual int Encrypt (const char *inbuff, int inlen, XrdSecBuffer **outbuff)
 
virtual int Decrypt (const char *inbuff, int inlen, XrdSecBuffer **outbuff)
 
virtual int Sign (const char *inbuff, int inlen, XrdSecBuffer **outbuff)
 
virtual int Verify (const char *inbuff, int inlen, const char *sigbuff, int siglen)
 
virtual int getKey (char *buff=0, int size=0)
 
virtual int setKey (char *buff, int size)
 
virtual bool needTLS ()
 Check if this protocol requires TLS to properly function.
 
 XrdSecProtocol (const char *pName)
 Constructor.
 

Private Attributes

XrdNetAddrInfo epAddr
 
char * theHost
 

Additional Inherited Members

- Public Attributes inherited from XrdSecProtocol
XrdSecEntity Entity
 
- Protected Member Functions inherited from XrdSecProtocol
virtual ~XrdSecProtocol ()
 Destructor (prevents use of direct delete).
 

Constructor & Destructor Documentation

◆ XrdSecProtocolhost()

XrdSecProtocolhost::XrdSecProtocolhost ( const char *  host,
XrdNetAddrInfo endPoint 
)
inline

References epAddr, and theHost.

◆ ~XrdSecProtocolhost()

XrdSecProtocolhost::~XrdSecProtocolhost ( )
inline

References theHost.

Member Function Documentation

◆ Authenticate()

int XrdSecProtocolhost::Authenticate ( XrdSecCredentials cred,
XrdSecParameters **  parms,
XrdOucErrInfo einfo = 0 
)
virtual

Authenticate a client.

Parameters
credCredentials supplied by the client.
parmsPlace where the address of additional authentication data is to be placed for another autrhentication handshake.
einfoThe error information object where error messages should be placed. The messages are returned to the client. Should einfo be null, messages should be written to stderr.
Returns
> 0 -> parms present (more authentication needed) = 0 -> Entity present (authentication suceeded) < 0 -> einfo present (error has occurred)

Implements XrdSecProtocol.

◆ Delete()

void XrdSecProtocolhost::Delete ( )
inlinevirtual

Delete the protocol object. DO NOT use C++ delete() on this object.

Implements XrdSecProtocol.

◆ getCredentials()

XrdSecCredentials * XrdSecProtocolhost::getCredentials ( XrdSecParameters parm = 0,
XrdOucErrInfo einfo = 0 
)
virtual

Generate client credentials to be used in the authentication process.

Parameters
parmPointer to the information returned by the server either in the initial login response or the authmore response.
einfoThe error information object where error messages should be placed. The messages are returned to the client. Should einfo be null, messages should be written to stderr.
Returns
Success: Pointer to credentials to sent to the server. The caller is responsible for deleting the object. Failure: Null pointer with einfo, if supplied, containing the reason for the failure.

Implements XrdSecProtocol.

◆ getParms()

const char * XrdSecProtocolhost::getParms ( int &  psize,
const char *  hname = 0 
)
inline

Member Data Documentation

◆ epAddr

XrdNetAddrInfo XrdSecProtocolhost::epAddr
private

Referenced by XrdSecProtocolhost().

◆ theHost

char* XrdSecProtocolhost::theHost
private

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