Skip to content

Commit

Permalink
Expose keyId reference in PseudoFuncDeclaration (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornandre authored Feb 6, 2024
1 parent d1097b5 commit 701327b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
// TODO: Support values wrapped by quotes (for values that need to use special characters like commas or parentheses)

public class PseudoFuncDeclaration {
public static final String KEY_REFERENCE = "keyId";
private final String funcName;
private final Map<String, String> args;

Expand Down Expand Up @@ -38,7 +39,7 @@ public static PseudoFuncDeclaration fromString(final String funcDeclStr) {
// compatibility by assuming the param name to be 'keyId'.
// This should be removed if/when we no longer support the fpe- function family.
if (funcName.startsWith(PseudoFuncNames.FPE)) {
return new String[] {"keyId", kv.trim()}; // For backwards compatibility. Should be removed if we phase out fpe- functions
return new String[] {KEY_REFERENCE, kv.trim()}; // For backwards compatibility. Should be removed if we phase out fpe- functions
}
throw new InvalidPseudoFuncParam("Pseudo func param should be on the format 'key=value', but was '" + kv.trim() + "'. Func declaration:" + funcDeclStr);
}
Expand Down

0 comments on commit 701327b

Please sign in to comment.