40#ifndef __JConstrCont_h
41#define __JConstrCont_h
99 DoubleList resourceList;
101 HashTable* resourceTable;
129#define JConstrCont_setCaseInsensitive(o) (o)->caseSensensitive=FALSE
BA_API void JConstrCont_setConstraints(JConstrCont *o, JVal *constraintsVal, JErr *err)
Replace rules without rollback on failure.
BA_API void JConstrCont_constructor(JConstrCont *o, JUserCont *userCont, AllocatorIntf *alloc)
Initialize an empty rule container.
#define JConstrCont_setCaseInsensitive(o)
Enable case-insensitive prefix matching.
Definition: JConstrCont.h:129
BA_API void JConstrCont_destructor(JConstrCont *o)
Release rules after detaching the authorizer from its users.
U8 BaBool
Boolean stored in an unsigned byte; FALSE is zero and TRUE is one.
Definition: GenPrimT.h:118
Memory allocation and deallocation Interface class.
Definition: AllocatorIntf.h:98
An abstract class, which you must implement, provides a method of authorizing an authenticated user.
Definition: AuthenticatedUser.h:115
Authorization rules loaded from a parsed JSON object.
Definition: JConstrCont.h:66
void setCaseInsensitive()
Make prefix-rule comparisons case-insensitive.
Definition: JConstrCont.h:138
~JConstrCont()
Release the stored rules; does not destroy userCont or its allocator.
Definition: JConstrCont.h:134
void setConstraints(JVal *constraintsVal, JErr *err)
Replace rules from a parsed JSON object.
Definition: JConstrCont.h:136
JConstrCont(JUserCont *userCont, AllocatorIntf *alloc=0)
Initialize an empty rule container.
Definition: JConstrCont.h:132
The JSON error container object.
Definition: JParser.h:173
User database implementing UserIntf, loaded from a parsed JSON object.
Definition: JUserCont.h:93
JVal represents a value in a JSON tree.
Definition: JVal.h:78