public interface StorageAccessAuthorizer
| Modifier and Type | Field and Description | 
|---|---|
static int | 
REASON_AGGREGATE  | 
static int | 
REASON_CLEAR  | 
static int | 
REASON_ENTRYSET  | 
static int | 
REASON_GET  | 
static int | 
REASON_INDEX_ADD  | 
static int | 
REASON_INDEX_REMOVE  | 
static int | 
REASON_INTERCEPTOR_ADD  | 
static int | 
REASON_INTERCEPTOR_REMOVE  | 
static int | 
REASON_INVOKE  | 
static int | 
REASON_KEYSET  | 
static int | 
REASON_LISTENER_ADD  | 
static int | 
REASON_LISTENER_REMOVE  | 
static int | 
REASON_PUT  | 
static int | 
REASON_REMOVE  | 
static int | 
REASON_TRIGGER_ADD  | 
static int | 
REASON_TRIGGER_REMOVE  | 
static int | 
REASON_UNKNOWN  | 
static int | 
REASON_VALUES  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
checkRead(BinaryEntry entry, Subject subject, int nReason)
Check if the caller represented by the specified Subject is authorized to a read access for the specified entry. 
 | 
void | 
checkReadAny(BackingMapContext context, Subject subject, int nReason)
Check if the caller represented by the specified Subject is authorized to read any data. 
 | 
void | 
checkWrite(BinaryEntry entry, Subject subject, int nReason)
Check if the caller represented by the specified Subject is authorized to a write access for the specified entry. 
 | 
void | 
checkWriteAny(BackingMapContext context, Subject subject, int nReason)
Check if the caller represented by the specified Subject is authorized to update any data. 
 | 
static String | 
reasonToString(int nReason)
Return a human-readable description for the specified REASON_ constant. 
 | 
static final int REASON_UNKNOWN
static final int REASON_GET
static final int REASON_PUT
static final int REASON_REMOVE
static final int REASON_KEYSET
static final int REASON_ENTRYSET
static final int REASON_VALUES
static final int REASON_CLEAR
static final int REASON_INVOKE
static final int REASON_AGGREGATE
static final int REASON_INDEX_ADD
static final int REASON_INDEX_REMOVE
static final int REASON_LISTENER_ADD
static final int REASON_LISTENER_REMOVE
static final int REASON_TRIGGER_ADD
static final int REASON_TRIGGER_REMOVE
static final int REASON_INTERCEPTOR_ADD
static final int REASON_INTERCEPTOR_REMOVE
void checkRead(BinaryEntry entry, Subject subject, int nReason)
entry - the entrysubject - the SubjectnReason - one of the REASON_* constantsSecurityException - if the action is not authorizedvoid checkWrite(BinaryEntry entry, Subject subject, int nReason)
entry - the entrysubject - the SubjectnReason - one of the REASON_* constantsSecurityException - if the action is not authorizedvoid checkReadAny(BackingMapContext context, Subject subject, int nReason)
For example, this check would be performed to install a map listener (except for lite listeners)
context - the BackingMapContextsubject - the SubjectnReason - one of the REASON_* constantsSecurityException - if the action is not authorizedvoid checkWriteAny(BackingMapContext context, Subject subject, int nReason)
For example, this check would be performed to install a trigger.
context - the BackingMapContextsubject - the SubjectnReason - one of the REASON_* constantsSecurityException - if the action is not authorizedstatic String reasonToString(int nReason)
nReason - one of the REASON_ constants