Package com.tangosol.net.security
Interface StorageAccessAuthorizer
- 
- All Known Implementing Classes:
- AuditingAuthorizer
 
 public interface StorageAccessAuthorizerA pluggable facility for the server side access control authorization.
- 
- 
Field SummaryFields Modifier and Type Field Description static intREASON_AGGREGATEstatic intREASON_CLEARstatic intREASON_ENTRYSETstatic intREASON_GETstatic intREASON_INDEX_ADDstatic intREASON_INDEX_REMOVEstatic intREASON_INTERCEPTOR_ADDstatic intREASON_INTERCEPTOR_REMOVEstatic intREASON_INVOKEstatic intREASON_KEYSETstatic intREASON_LISTENER_ADDstatic intREASON_LISTENER_REMOVEstatic intREASON_PUTstatic intREASON_REMOVEstatic intREASON_TRIGGER_ADDstatic intREASON_TRIGGER_REMOVEstatic intREASON_UNKNOWNstatic intREASON_VALUES
 - 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcheckRead(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.voidcheckReadAny(BackingMapContext context, Subject subject, int nReason)Check if the caller represented by the specified Subject is authorized to read any data.voidcheckWrite(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.voidcheckWriteAny(BackingMapContext context, Subject subject, int nReason)Check if the caller represented by the specified Subject is authorized to update any data.static StringreasonToString(int nReason)Return a human-readable description for the specified REASON_ constant.
 
- 
- 
- 
Field Detail- 
REASON_UNKNOWNstatic final int REASON_UNKNOWN - See Also:
- Constant Field Values
 
 - 
REASON_GETstatic final int REASON_GET - See Also:
- Constant Field Values
 
 - 
REASON_PUTstatic final int REASON_PUT - See Also:
- Constant Field Values
 
 - 
REASON_REMOVEstatic final int REASON_REMOVE - See Also:
- Constant Field Values
 
 - 
REASON_KEYSETstatic final int REASON_KEYSET - See Also:
- Constant Field Values
 
 - 
REASON_ENTRYSETstatic final int REASON_ENTRYSET - See Also:
- Constant Field Values
 
 - 
REASON_VALUESstatic final int REASON_VALUES - See Also:
- Constant Field Values
 
 - 
REASON_CLEARstatic final int REASON_CLEAR - See Also:
- Constant Field Values
 
 - 
REASON_INVOKEstatic final int REASON_INVOKE - See Also:
- Constant Field Values
 
 - 
REASON_AGGREGATEstatic final int REASON_AGGREGATE - See Also:
- Constant Field Values
 
 - 
REASON_INDEX_ADDstatic final int REASON_INDEX_ADD - See Also:
- Constant Field Values
 
 - 
REASON_INDEX_REMOVEstatic final int REASON_INDEX_REMOVE - See Also:
- Constant Field Values
 
 - 
REASON_LISTENER_ADDstatic final int REASON_LISTENER_ADD - See Also:
- Constant Field Values
 
 - 
REASON_LISTENER_REMOVEstatic final int REASON_LISTENER_REMOVE - See Also:
- Constant Field Values
 
 - 
REASON_TRIGGER_ADDstatic final int REASON_TRIGGER_ADD - See Also:
- Constant Field Values
 
 - 
REASON_TRIGGER_REMOVEstatic final int REASON_TRIGGER_REMOVE - See Also:
- Constant Field Values
 
 - 
REASON_INTERCEPTOR_ADDstatic final int REASON_INTERCEPTOR_ADD - See Also:
- Constant Field Values
 
 - 
REASON_INTERCEPTOR_REMOVEstatic final int REASON_INTERCEPTOR_REMOVE - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
checkReadvoid 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.- Parameters:
- entry- the entry
- subject- the Subject
- nReason- one of the REASON_* constants
- Throws:
- SecurityException- if the action is not authorized
 
 - 
checkWritevoid 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.- Parameters:
- entry- the entry
- subject- the Subject
- nReason- one of the REASON_* constants
- Throws:
- SecurityException- if the action is not authorized
 
 - 
checkReadAnyvoid checkReadAny(BackingMapContext context, Subject subject, int nReason) 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 BackingMapContext
- subject- the Subject
- nReason- one of the REASON_* constants
- Throws:
- SecurityException- if the action is not authorized
 
 - 
checkWriteAnyvoid checkWriteAny(BackingMapContext context, Subject subject, int nReason) 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 BackingMapContext
- subject- the Subject
- nReason- one of the REASON_* constants
- Throws:
- SecurityException- if the action is not authorized
 
 - 
reasonToStringstatic String reasonToString(int nReason) Return a human-readable description for the specified REASON_ constant.- Parameters:
- nReason- one of the REASON_ constants
- Returns:
- the operation description
 
 
- 
 
-