|
XRootD
|
#include <XrdHttpChecksumHandler.hh>
Collaboration diagram for XrdHttpChecksumHandler:Public Types | |
| using | XrdHttpChecksumRawPtr = XrdHttpChecksumHandlerImpl::XrdHttpChecksumRawPtr |
Public Member Functions | |
| XrdHttpChecksumHandler ()=default | |
| void | configure (const char *csList) |
| XrdHttpChecksumRawPtr | getChecksumToRunWantDigest (const std::string &wantDigest) const |
| XrdHttpChecksumRawPtr | getChecksumToRunWantReprDigest (const std::map< std::string, uint8_t > &wantReprDigest) const |
| const std::vector< std::string > & | getNonIANAConfiguredCksums () const |
This class allows to handle xrd http checksum algorithm selection based on what the user provided as a digest
Definition at line 87 of file XrdHttpChecksumHandler.hh.
| using XrdHttpChecksumHandler::XrdHttpChecksumRawPtr = XrdHttpChecksumHandlerImpl::XrdHttpChecksumRawPtr |
Definition at line 89 of file XrdHttpChecksumHandler.hh.
|
default |
|
inline |
Configure this handler.
| runtime_exception | if no algorithm in the csList is compatible with HTTP |
| csList | the list coming from the server configuration. Should be under the format 0:adler32,1:sha512 |
Definition at line 97 of file XrdHttpChecksumHandler.hh.
References XrdHttpChecksumHandlerImpl::configure().
Here is the call graph for this function:
|
inline |
Returns the checksum to run from the user "Want-Digest" provided string
| wantDigest | the digest string under the format "sha-512,sha-256;q=0.8,sha;q=0.6,md5;q=0.4,adler32;q=0.2" |
Definition at line 106 of file XrdHttpChecksumHandler.hh.
References XrdHttpChecksumHandlerImpl::getChecksumToRunWantDigest().
Here is the call graph for this function:
|
inline |
Returns the checksum to run from the user "Want-Repr-Digest" header provided values (already parsed in a map <digestName, preference>)
| wantReprDigest | the map containing the user want-repr-digest values |
Definition at line 116 of file XrdHttpChecksumHandler.hh.
References XrdHttpChecksumHandlerImpl::getChecksumToRunWantReprDigest().
Here is the call graph for this function:
|
inline |
Returns the checksums that are incompatible with HTTP --> the ones that we do not know whether the result should be base64 encoded or not
Definition at line 122 of file XrdHttpChecksumHandler.hh.
References XrdHttpChecksumHandlerImpl::getNonIANAConfiguredCksums().
Here is the call graph for this function: