XRootD
Loading...
Searching...
No Matches
XrdHttpChecksum Class Reference

#include <XrdHttpChecksum.hh>

Collaboration diagram for XrdHttpChecksum:

Public Member Functions

 XrdHttpChecksum (const std::string &xrootConfigDigestName, const std::string &httpName, bool needsBase64Padding)
std::string getHttpName () const
std::string getHttpNameLowerCase () const
std::string getXRootDConfigDigestName () const
bool needsBase64Padding () const

Detailed Description

Simple object containing information about a checksum

Definition at line 32 of file XrdHttpChecksum.hh.

Constructor & Destructor Documentation

◆ XrdHttpChecksum()

XrdHttpChecksum::XrdHttpChecksum ( const std::string & xrootConfigDigestName,
const std::string & httpName,
bool needsBase64Padding )

Constructor

Parameters
xrootConfigDigestNamethe name that will be used by XRootD server to run the checksum
httpNamethe HTTP RFC compliant name of the checksum
needsBase64Paddingsets to true if the checksum needs to be base64 encoded before being sent, false otherwise

Definition at line 26 of file XrdHttpChecksum.cc.

26 :
27 mXRootDConfigDigestName(xrootConfigDigestName),
28 mHTTPName(httpName),
29 mNeedsBase64Padding(needsBase64Padding){}
bool needsBase64Padding() const

References needsBase64Padding().

Here is the call graph for this function:

Member Function Documentation

◆ getHttpName()

std::string XrdHttpChecksum::getHttpName ( ) const

Definition at line 31 of file XrdHttpChecksum.cc.

31 {
32 return mHTTPName;
33}

Referenced by getHttpNameLowerCase().

Here is the caller graph for this function:

◆ getHttpNameLowerCase()

std::string XrdHttpChecksum::getHttpNameLowerCase ( ) const

Definition at line 35 of file XrdHttpChecksum.cc.

35 {
36 std::string ret = getHttpName();
37 std::transform(ret.begin(),ret.end(),ret.begin(),::tolower);
38 return ret;
39}
std::string getHttpName() const

References getHttpName().

Here is the call graph for this function:

◆ getXRootDConfigDigestName()

std::string XrdHttpChecksum::getXRootDConfigDigestName ( ) const

Definition at line 41 of file XrdHttpChecksum.cc.

41 {
42 return mXRootDConfigDigestName;
43}

◆ needsBase64Padding()

bool XrdHttpChecksum::needsBase64Padding ( ) const

Definition at line 45 of file XrdHttpChecksum.cc.

45 {
46 return mNeedsBase64Padding;
47}

Referenced by XrdHttpChecksum().

Here is the caller graph for this function:

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