Class SymbolTable

    • Field Detail

      • DEFAULT_SYMBOLS_OFFSET

        public static final short DEFAULT_SYMBOLS_OFFSET
        See Also:
        Constant Field Values
      • defaultSymbols

        public static final List<String> defaultSymbols
        Due to https://github.com/biscuit-auth/biscuit/blob/master/SPECIFICATIONS.md#symbol-table, We need two symbols tables: * one for the defaults symbols indexed from 0 et 1023 in defaultSymbols list * one for the usages symbols indexed from 1024 in symbols list
    • Constructor Detail

      • SymbolTable

        public SymbolTable()
    • Method Detail

      • fromEpochIsoDate

        public String fromEpochIsoDate​(long epochSec)
      • insert

        public long insert​(String symbol)
      • currentOffset

        public int currentOffset()
      • currentPublicKeyOffset

        public int currentPublicKeyOffset()
      • insert

        public long insert​(PublicKey publicKey)
      • get

        public io.vavr.control.Option<Long> get​(String symbol)
      • get_s

        public io.vavr.control.Option<String> get_s​(int i)
      • get_pk

        public io.vavr.control.Option<PublicKey> get_pk​(int i)
      • print_rule

        public String print_rule​(Rule r)
      • print_rule_body

        public String print_rule_body​(Rule r)
      • print_scope

        public String print_scope​(Scope scope)
      • print_term

        public String print_term​(Term i)
      • print_fact

        public String print_fact​(Fact f)
      • print_symbol

        public String print_symbol​(int i)
      • getAllSymbols

        public List<String> getAllSymbols()