|
xrootd
|
#include <XrdSecInterface.hh>


Public Member Functions | |
| virtual int | Authenticate (XrdSecCredentials *cred, XrdSecParameters **parms, XrdOucErrInfo *einfo=0)=0 |
| virtual XrdSecCredentials * | getCredentials (XrdSecParameters *parm=0, XrdOucErrInfo *einfo=0)=0 |
| virtual int | Encrypt (const char *, int, XrdSecBuffer **) |
| virtual int | Decrypt (const char *, int, XrdSecBuffer **) |
| virtual int | Sign (const char *, int, XrdSecBuffer **) |
| virtual int | Verify (const char *, int, const char *, int) |
| virtual int | getKey (char *=0, int=0) |
| virtual int | setKey (char *, int) |
| virtual void | Delete ()=0 |
| Delete the protocol object. DO NOT use C++ delete() on this object. | |
| XrdSecProtocol (const char *pName) | |
| Constructor. | |
Public Attributes | |
| XrdSecEntity | Entity |
Protected Member Functions | |
| virtual | ~XrdSecProtocol () |
| Destructor (prevents use of direct delete). | |
| XrdSecProtocol::XrdSecProtocol | ( | const char * | pName | ) | [inline] |
Constructor.
| virtual XrdSecProtocol::~XrdSecProtocol | ( | ) | [inline, protected, virtual] |
Destructor (prevents use of direct delete).
| virtual int XrdSecProtocol::Authenticate | ( | XrdSecCredentials * | cred, |
| XrdSecParameters ** | parms, | ||
| XrdOucErrInfo * | einfo = 0 |
||
| ) | [pure virtual] |
Authenticate a client.
| cred | Credentials supplied by the client. |
| parms | Place where the address of additional authentication data is to be placed for another autrhentication handshake. |
| einfo | The 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. |
Implemented in XrdSecProtocolpwd, XrdSecProtocolgsi, XrdSecTLayer, XrdSecProtocolkrb5, XrdSecProtNone, XrdSecProtocolunix, XrdSecProtocolsss, and XrdSecProtocolhost.
Referenced by XrdCmsSecurity::Authenticate(), XrdXrootdProtocol::do_Auth(), and main().
| virtual int XrdSecProtocol::Decrypt | ( | const char * | , |
| int | , | ||
| XrdSecBuffer ** | |||
| ) | [inline, virtual] |
Decrypt data in inbuff using the session key.
| inbuff | buffer holding data to be decrypted. |
| inlen | length of the data. |
| outbuff | place where a pointer to the decrypted data is placed. |
Reimplemented in XrdSecProtocolgsi.
| virtual void XrdSecProtocol::Delete | ( | ) | [pure virtual] |
Delete the protocol object. DO NOT use C++ delete() on this object.
Implemented in XrdSecProtocolpwd, XrdSecProtocolgsi, XrdSecProtocolkrb5, XrdSecTLayer, XrdSecProtNone, XrdSecProtocolunix, XrdSecProtocolhost, and XrdSecProtocolsss.
Referenced by XrdCmsSecurity::Authenticate(), XrdXrootdProtocol::Cleanup(), XrdCl::XRootDTransport::CleanUpAuthentication(), XrdXrootdProtocol::do_Auth(), XrdClientConn::DoAuthentication(), XrdCl::XRootDTransport::GetCredentials(), XrdCmsSecurity::Identify(), main(), and XrdClientPhyConnection::~XrdClientPhyConnection().
| virtual int XrdSecProtocol::Encrypt | ( | const char * | , |
| int | , | ||
| XrdSecBuffer ** | |||
| ) | [inline, virtual] |
Encrypt data in inbuff using the session key.
| inbuff | buffer holding data to be encrypted. |
| inlen | length of the data. |
| outbuff | place where a pointer to the encrypted data is placed. |
Reimplemented in XrdSecProtocolgsi.
| virtual XrdSecCredentials* XrdSecProtocol::getCredentials | ( | XrdSecParameters * | parm = 0, |
| XrdOucErrInfo * | einfo = 0 |
||
| ) | [pure virtual] |
Generate client credentials to be used in the authentication process.
| parm | Pointer to the information returned by the server either in the initial login response or the authmore response. |
| einfo | The 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. |
Implemented in XrdSecProtocolpwd, XrdSecProtocolgsi, XrdSecTLayer, XrdSecProtocolkrb5, XrdSecProtNone, XrdSecProtocolsss, XrdSecProtocolunix, and XrdSecProtocolhost.
Referenced by XrdCl::XRootDTransport::DoAuthentication(), XrdClientConn::DoAuthentication(), XrdCl::XRootDTransport::GetCredentials(), XrdCmsSecurity::Identify(), and main().
| virtual int XrdSecProtocol::getKey | ( | char * | = 0, |
| int | = 0 |
||
| ) | [inline, virtual] |
Get the current encryption key (i.e. session key)
| buff | buffer to hold the key, and may be null. |
| size | size of the buffer. |
Reimplemented in XrdSecProtocolgsi.
| virtual int XrdSecProtocol::setKey | ( | char * | , |
| int | |||
| ) | [inline, virtual] |
Set the current encryption key
| buff | buffer that holds the key. |
| size | size of the key. |
Reimplemented in XrdSecProtocolgsi.
| virtual int XrdSecProtocol::Sign | ( | const char * | , |
| int | , | ||
| XrdSecBuffer ** | |||
| ) | [inline, virtual] |
Sign data in inbuff using the session key.
| inbuff | buffer holding data to be signed. |
| inlen | length of the data. |
| outbuff | place where a pointer to the signature is placed. |
Reimplemented in XrdSecProtocolgsi.
| virtual int XrdSecProtocol::Verify | ( | const char * | , |
| int | , | ||
| const char * | , | ||
| int | |||
| ) | [inline, virtual] |
Verify a signature using the session key.
| inbuff | buffer holding data to be verified. |
| inlen | length of the data. |
| sigbuff | pointer to the signature data. |
| siglen | length of the signature data. |
Reimplemented in XrdSecProtocolgsi.
Structure holding the entity's identification. It is filled in by a successful call to Authenticate() (i.e. it returns 0).
Referenced by XrdSecProtocolhost::Authenticate(), XrdCmsSecurity::Authenticate(), XrdSecProtocolsss::Authenticate(), XrdSecProtocolunix::Authenticate(), XrdSecProtocolkrb5::Authenticate(), XrdSecProtocolgsi::Authenticate(), XrdSecProtocolpwd::Authenticate(), XrdSecProtocolgsi::ClientDoInit(), XrdSecProtocolsss::Delete(), XrdSecProtocolkrb5::Delete(), XrdSecProtocolgsi::Delete(), XrdSecProtocolpwd::Delete(), XrdXrootdProtocol::do_Auth(), XrdCl::XRootDTransport::DoAuthentication(), XrdClientConn::DoAuthentication(), XrdSecProtocolpwd::ExportCreds(), XrdSecProtocolgsi::getCredentials(), XrdCl::XRootDTransport::GetCredentials(), XrdSecProtocolsss::getLID(), XrdSecProtocolpwd::GetUserHost(), main(), XrdSecProtocolpwd::QueryNetRc(), XrdSecProtocolgsi::ServerCertNameOK(), XrdSecProtocolgsi::ServerDoSigpxy(), XrdSecProtocolgsi::XrdSecProtocolgsi(), XrdSecProtocolkrb5::XrdSecProtocolkrb5(), XrdSecProtocolpwd::XrdSecProtocolpwd(), XrdSecProtocolunix::XrdSecProtocolunix(), and XrdSecProtocolunix::~XrdSecProtocolunix().
1.7.6.1