Xerces-C++: SecurityManager.hpp Source File (original) (raw)

Go to the documentation of this file.

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22#if !defined(XERCESC_INCLUDE_GUARD_SECURITYMANAGER_HPP)

23#define XERCESC_INCLUDE_GUARD_SECURITYMANAGER_HPP

24

26

28

52{

53public:

54

55 enum { ENTITY_EXPANSION_LIMIT = 50000};

56

61 : fEntityExpansionLimit((XMLSize_t)ENTITY_EXPANSION_LIMIT)

62 {

63 }

64

68

84 {

85 fEntityExpansionLimit = newLimit;

86 }

87

96 {

97 return fEntityExpansionLimit;

98 }

100

101protected:

103

104private:

105

106

107

109

112};

113

115

116#endif

#define XERCES_CPP_NAMESPACE_BEGIN

Definition XercesDefs.hpp:112

#define XMLUTIL_EXPORT

Definition XercesDefs.hpp:162

#define XERCES_CPP_NAMESPACE_END

Definition XercesDefs.hpp:113

size_t XMLSize_t

Definition Xerces_autoconf_config.hpp:112

Allow application to force the parser to behave in a security-conscious way.

Definition SecurityManager.hpp:52

virtual ~SecurityManager()

Destructor.

Definition SecurityManager.hpp:66

XMLSize_t fEntityExpansionLimit

Definition SecurityManager.hpp:102

SecurityManager()

Default constructor.

Definition SecurityManager.hpp:60

virtual void setEntityExpansionLimit(XMLSize_t newLimit)

An application should call this method when it wishes to specify a particular limit to the number of ...

Definition SecurityManager.hpp:83

virtual XMLSize_t getEntityExpansionLimit() const

Permits the application or a parser component to query the current limit for entity expansions.

Definition SecurityManager.hpp:95