Module: Owasp::Esapi

Defined in:
lib/esapi.rb,
lib/executor.rb,
lib/exceptions.rb,
lib/codec/encoder.rb,
lib/sanitizer/xss.rb,
lib/codec/os_codec.rb,
lib/codec/css_codec.rb,
lib/codec/xml_codec.rb,
lib/validator/email.rb,
lib/codec/base_codec.rb,
lib/codec/html_codec.rb,
lib/codec/mysql_codec.rb,
lib/validator/zipcode.rb,
lib/codec/oracle_codec.rb,
lib/codec/percent_codec.rb,
lib/validator/base_rule.rb,
lib/validator/date_rule.rb,
lib/codec/vbscript_codec.rb,
lib/validator/float_rule.rb,
lib/codec/pushable_string.rb,
lib/validator/string_rule.rb,
lib/codec/javascript_codec.rb,
lib/validator/integer_rule.rb,
lib/validator/generic_validator.rb,
lib/validator/validator_error_list.rb

Overview

Esapi Root module

Defined Under Namespace

Modules: Codec, Sanitizer, Validator Classes: Encoder, EnterpriseSecurityException, Executor, ExecutorException, IntrustionException, ValidationException

Class Method Summary collapse

Class Method Details

.encoderObject

Get the configured encoded



58
59
60
# File 'lib/esapi.rb', line 58

def self.encoder
  @encoder ||= ClassLoader.load_class("Owasp::Esapi::Encoder")
end

.loggerObject

Get the configured logger



54
55
56
# File 'lib/esapi.rb', line 54

def self.logger
  @logger ||= Logger.new
end

.security_configObject

Get the security configuration context



50
51
52
# File 'lib/esapi.rb', line 50

def self.security_config
  @security ||= Configuration.new
end

.setup {|@config| ... } ⇒ Object

seutp ESAPI

Yields:

  • (@config)


43
44
45
46
47
# File 'lib/esapi.rb', line 43

def self.setup
  @config ||= Configuration.new
  yield @config if block_given?
  process_config(@config)
end