Skip to content
Release: Australia · Updated: 2026-07-09 · Official documentation · View source

Encryption rule objects and APIs

Use encryption rule APIs to parse and encrypt values in requests moving through the Edge Encryption proxy server to the instance.

The APIs available for your encryption rule depend on the format of the request object. For example, if the contentType parameter of the request object is XML, you can use the XML APIs to parse and encrypt values in the payload. After you determine the type of object in your request, you can build an encryption rule using the available APIs.

Encryption rule APIs are available in both encryption rule condition and action scripts.

  • request
    The request object is a global object available in Edge Encryption rule action and condition scripts.
  • POST and URL parameter APIs
    POST and URL parameters can be accessed as properties of the request object using request.postParams and request.urlParams.
  • XML APIs
    XML APIs can be used after calling getAsXmlContent() on either the request object or a ParameterValue property.
  • JSON APIs
    JSON APIs can be used after calling getAsJsonContent() on either the request object or a ParameterValue property.
  • print(String message)
    Prints a message to the wrapper log file: <proxy server directory>/logs/wrapper_<date>.log.
  • Prohibited keywords
    The Edge Encryption proxy validates encryption rule scripts before saving the rule. Many JavaScript keywords aren’t allowed in encryption rule scripts.

Parent Topic:Define a custom encryption rule