XRootD
XrdSecProtNone Class Reference
+ Inheritance diagram for XrdSecProtNone:
+ Collaboration diagram for XrdSecProtNone:

Public Member Functions

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

Additional Inherited Members

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

Detailed Description

Definition at line 59 of file XrdSecClient.cc.

Constructor & Destructor Documentation

◆ XrdSecProtNone()

XrdSecProtNone::XrdSecProtNone ( )
inline

Definition at line 73 of file XrdSecClient.cc.

73 : XrdSecProtocol("") {}
XrdSecProtocol(const char *pName)
Constructor.

◆ ~XrdSecProtNone()

XrdSecProtNone::~XrdSecProtNone ( )
inline

Definition at line 74 of file XrdSecClient.cc.

74 {}

Member Function Documentation

◆ Authenticate()

int XrdSecProtNone::Authenticate ( XrdSecCredentials cred,
XrdSecParameters **  parms,
XrdOucErrInfo einfo = 0 
)
inlinevirtual

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.

Definition at line 62 of file XrdSecClient.cc.

65  {return 0;}

◆ Delete()

void XrdSecProtNone::Delete ( )
inlinevirtual

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

Implements XrdSecProtocol.

Definition at line 71 of file XrdSecClient.cc.

71 {} // Never deleted because it's static!

◆ getCredentials()

XrdSecCredentials* XrdSecProtNone::getCredentials ( XrdSecParameters parm = 0,
XrdOucErrInfo einfo = 0 
)
inlinevirtual

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.

Definition at line 67 of file XrdSecClient.cc.

69  {return new XrdSecCredentials();}
XrdSecBuffer XrdSecCredentials

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