IBM Verify

IBM Verify

Join this online user group to communicate across Security product users and IBM experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Encoding special characters in an EAI header

  • 1.  Encoding special characters in an EAI header

    Posted Thu October 22, 2020 02:24 PM
    Hello,

    There is an IBM document 545179 about the need to encode special characters in an EAI header:
    --------
    All white space and non-ASCII bytes need to be encoded %XY, where X and Y are hex values (0–F).

    Encoding applies also to the following entries:
    • ASCII characters below 0x1F and above 0x7F
    • Escape characters for tab, carriage return, and line feed
    • Percent symbol
    -------------
    We faced this problem when using InfoMap (ISAM 9 AAC). Is there an easy way to encode a string without writing your own code to parse for all the specified characters?

    ------------------------------
    Anatoly Nazarenko
    ------------------------------


  • 2.  RE: Encoding special characters in an EAI header

    Posted Fri October 23, 2020 06:54 AM
    Hello Anatoly,

    I'm not 100% sure but this sounds like a URL encoding.

    Have a look at the encodeURL method in the com.tivoli.am.rba.extensions.PluginUtils package:

    • encodeURL

      public static java.lang.String encodeURL(java.lang.String str)
      Returns a encoded URL.
      Parameters:
      str - is the string value to URL encode
      Returns:
      URL encoded string
      Since:
      8.0.0.3
    Jon.

    ------------------------------
    Jon Harry
    Consulting IT Security Specialist
    IBM
    ------------------------------