Table of Contents

Search

  1. Preface
  2. Introduction to Dynamic Data Masking
  3. Rules
  4. Connection Rules
  5. Security Rules
  6. Security Rule Set Simulator
  7. Masking Functions
  8. XML Functions Reference
  9. Glossary

Java Class Example

Java Class Example

The following text is an example of a Java class. The Java action runs the execute method.
import com.activebase.rule.*; public class ExampleJA { public static String execute(RuleContext ctx) { return "select 'OK' from dual"; } public static boolean match(RuleContext ctx) { String user = ctx.getSymbol(RuleContext.USERNAME).toUpperCase(); if ("SCOTT".equals(user)) { return true; } return false; }