Class ClassifiedValueTokens

java.lang.Object
com.kingsrook.qqq.backend.core.actions.permissions.fieldaccess.ClassifiedValueTokens

public final class ClassifiedValueTokens extends Object
Shared, versioned audit/email value tokens. The MAC input is UTF-8.
  • Method Details

    • forRecordField

      public static String forRecordField(QTableMetaData table, QFieldMetaData field, Serializable pk, Serializable value)
      Bind a value to the table, field and primary key, preferring a shreddable key.
    • forContext

      public static String forContext(List<String> bindingParts, Serializable value)
      Non-record bindings must start with a nonempty domain.
    • changed

      public static String changed()
      No derivative of the original value.
    • shreddedToken

      public static String shreddedToken(String ruleId)
      A key-destruction event, never a derivative of the value.
    • verifyRecordField

      public static boolean verifyRecordField(QTableMetaData table, QFieldMetaData field, Serializable pk, Serializable candidate, String token)
      Verify only keyed tokens, using existing keys and constant-time MAC comparison.
    • verifyContext

      public static boolean verifyContext(List<String> bindingParts, Serializable candidate, String token)
      Verify a non-record token without creating a key.
    • canonical

      public static String canonical(Serializable value)
      Canonical ValueUtils strings, with scale-independent plain decimal notation.