xrootd
|
#include <XrdHttpChecksumHandler.hh>
Public Types | |
using | XrdHttpChecksumRawPtr = XrdHttpChecksumHandlerImpl::XrdHttpChecksumRawPtr |
Public Member Functions | |
XrdHttpChecksumHandler ()=default | |
void | configure (const char *csList) |
XrdHttpChecksumRawPtr | getChecksumToRun (const std::string &userDigest) const |
const std::vector< std::string > & | getNonIANAConfiguredCksums () const |
Private Attributes | |
XrdHttpChecksumHandlerImpl | pImpl |
This class allows to handle xrd http checksum algorithm selection based on what the user provided as a digest
using XrdHttpChecksumHandler::XrdHttpChecksumRawPtr = XrdHttpChecksumHandlerImpl::XrdHttpChecksumRawPtr |
|
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 |
References XrdHttpChecksumHandlerImpl::configure(), and pImpl.
|
inline |
Returns the checksum to run from the user "Want-Digest" provided string
userDigest | 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" |
References XrdHttpChecksumHandlerImpl::getChecksumToRun(), and pImpl.
|
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
References XrdHttpChecksumHandlerImpl::getNonIANAConfiguredCksums(), and pImpl.
|
private |
Referenced by configure(), getChecksumToRun(), and getNonIANAConfiguredCksums().