O'Reilly logo

Apache Accumulo for Developers by Guðmundur Jón Halldórsson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Security expression

As we saw in the previous example, security labels are a set of tokens the user chooses to use. The tokens are a set of ASCII characters (arbitrary strings). In the previous example, we used the logical AND operator to join two authorization tokens.

Examples of usage are:

  • AND: An example of this is SecTokenA&SecTokenB, where the user needs both SecTokenA and SecTokenB to be able to see the cell
  • OR: An example of this is SecTokenA|SecTokenB, where the user only needs one token, SecTokenA or SecTokenB, to be able to see the cell
  • AND, OR: An example of this is (SecTokenA&SecTokenB)|SecTokenC, where the user only needs either SecTokenA and SecTokenB or SecTokenC

More complex rules can be created using Boolean AND (&) and OR (|) combinations. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required