Package com.tangosol.net.security
Interface StorageAccessAuthorizer
- All Known Implementing Classes:
AuditingAuthorizer
public interface StorageAccessAuthorizer
A pluggable facility for the server side access control authorization.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.
-
Field Details
-
REASON_UNKNOWN
static final int REASON_UNKNOWN- See Also:
-
REASON_GET
static final int REASON_GET- See Also:
-
REASON_PUT
static final int REASON_PUT- See Also:
-
REASON_REMOVE
static final int REASON_REMOVE- See Also:
-
REASON_KEYSET
static final int REASON_KEYSET- See Also:
-
REASON_ENTRYSET
static final int REASON_ENTRYSET- See Also:
-
REASON_VALUES
static final int REASON_VALUES- See Also:
-
REASON_CLEAR
static final int REASON_CLEAR- See Also:
-
REASON_INVOKE
static final int REASON_INVOKE- See Also:
-
REASON_AGGREGATE
static final int REASON_AGGREGATE- See Also:
-
REASON_INDEX_ADD
static final int REASON_INDEX_ADD- See Also:
-
REASON_INDEX_REMOVE
static final int REASON_INDEX_REMOVE- See Also:
-
REASON_LISTENER_ADD
static final int REASON_LISTENER_ADD- See Also:
-
REASON_LISTENER_REMOVE
static final int REASON_LISTENER_REMOVE- See Also:
-
REASON_TRIGGER_ADD
static final int REASON_TRIGGER_ADD- See Also:
-
REASON_TRIGGER_REMOVE
static final int REASON_TRIGGER_REMOVE- See Also:
-
REASON_INTERCEPTOR_ADD
static final int REASON_INTERCEPTOR_ADD- See Also:
-
REASON_INTERCEPTOR_REMOVE
static final int REASON_INTERCEPTOR_REMOVE- See Also:
-
-
Method Details
-
checkRead
Check if the caller represented by the specified Subject is authorized to a read access for the specified entry.- Parameters:
entry
- the entrysubject
- the SubjectnReason
- one of the REASON_* constants- Throws:
SecurityException
- if the action is not authorized
-
checkWrite
Check if the caller represented by the specified Subject is authorized to a write access for the specified entry.- Parameters:
entry
- the entrysubject
- the SubjectnReason
- one of the REASON_* constants- Throws:
SecurityException
- if the action is not authorized
-
checkReadAny
Check if the caller represented by the specified Subject is authorized to read any data.For example, this check would be performed to install a
map listener
(except for lite listeners)- Parameters:
context
- the BackingMapContextsubject
- the SubjectnReason
- one of the REASON_* constants- Throws:
SecurityException
- if the action is not authorized
-
checkWriteAny
Check if the caller represented by the specified Subject is authorized to update any data.For example, this check would be performed to install a trigger.
- Parameters:
context
- the BackingMapContextsubject
- the SubjectnReason
- one of the REASON_* constants- Throws:
SecurityException
- if the action is not authorized
-
reasonToString
Return a human-readable description for the specified REASON_ constant.- Parameters:
nReason
- one of the REASON_ constants- Returns:
- the operation description
-