Class Biscuit
- java.lang.Object
-
- com.clevercloud.biscuit.token.builder.Biscuit
-
public class Biscuit extends Object
-
-
Constructor Summary
Constructors Constructor Description Biscuit(SecureRandom rng, KeyPair root, SymbolTable base_symbols)Biscuit(SecureRandom rng, KeyPair root, io.vavr.control.Option<Integer> root_key_id, SymbolTable base_symbols)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Biscuitadd_authority_check(Check c)Biscuitadd_authority_check(String s)Biscuitadd_authority_fact(Fact f)Biscuitadd_authority_fact(String s)Biscuitadd_authority_rule(Rule rule)Biscuitadd_authority_rule(String s)Biscuitadd_right(String resource, String right)Biscuitbuild()Biscuitset_context(String context)voidset_root_key_id(Integer i)
-
-
-
Constructor Detail
-
Biscuit
public Biscuit(SecureRandom rng, KeyPair root, SymbolTable base_symbols)
-
Biscuit
public Biscuit(SecureRandom rng, KeyPair root, io.vavr.control.Option<Integer> root_key_id, SymbolTable base_symbols)
-
-
Method Detail
-
add_authority_fact
public Biscuit add_authority_fact(Fact f) throws Error.Language
- Throws:
Error.Language
-
add_authority_fact
public Biscuit add_authority_fact(String s) throws Error.Parser, Error.Language
- Throws:
Error.ParserError.Language
-
add_authority_rule
public Biscuit add_authority_rule(String s) throws Error.Parser
- Throws:
Error.Parser
-
add_authority_check
public Biscuit add_authority_check(String s) throws Error.Parser
- Throws:
Error.Parser
-
set_root_key_id
public void set_root_key_id(Integer i)
-
add_right
public Biscuit add_right(String resource, String right) throws Error.Language
- Throws:
Error.Language
-
-