-
public final class SQLNormalizerThis class removes numbers and SQL literals from strings on a best-effort basis, producing UTF-8 encoded bytes. The aim is to remove as much information as possible, but only when it's cheap to do so. It makes no context-sensitive decisions, which works well for ANSI SQL, but, for example, will not remove literals in MySQL which are indistinguishable from object names. This is not an obfuscator, and the strings produced by this class must be passed through obfuscation in the trace agent.
-
-
Method Summary
Modifier and Type Method Description static UTF8BytesStringnormalizeCharSequence(CharSequence sql)static UTF8BytesStringnormalize(String sql)-
-
Method Detail
-
normalizeCharSequence
static UTF8BytesString normalizeCharSequence(CharSequence sql)
-
normalize
static UTF8BytesString normalize(String sql)
-
-
-
-