XRootD
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) {
30  mHttpLowerCaseName.resize(mHTTPName.size());
31  std::transform(mHTTPName.begin(),mHTTPName.end(),mHttpLowerCaseName.begin(),::tolower);
32 }
bool needsBase64Padding() const

Member Function Documentation

◆ getHttpName()

std::string XrdHttpChecksum::getHttpName ( ) const

Definition at line 34 of file XrdHttpChecksum.cc.

34  {
35  return mHTTPName;
36 }

◆ getHttpNameLowerCase()

std::string XrdHttpChecksum::getHttpNameLowerCase ( ) const

Definition at line 38 of file XrdHttpChecksum.cc.

38  {
39  return mHttpLowerCaseName;
40 }

◆ getXRootDConfigDigestName()

std::string XrdHttpChecksum::getXRootDConfigDigestName ( ) const

Definition at line 42 of file XrdHttpChecksum.cc.

42  {
43  return mXRootDConfigDigestName;
44 }

◆ needsBase64Padding()

bool XrdHttpChecksum::needsBase64Padding ( ) const

Definition at line 46 of file XrdHttpChecksum.cc.

46  {
47  return mNeedsBase64Padding;
48 }

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