Interface StorageAccessAuthorizer

All Known Implementing Classes:
AuditingAuthorizer

public interface StorageAccessAuthorizer
A pluggable facility for the server side access control authorization.
  • Field Details Link icon

  • Method Details Link icon

    • checkRead Link icon

      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.
      Parameters:
      entry - the entry
      subject - the Subject
      nReason - one of the REASON_* constants
      Throws:
      SecurityException - if the action is not authorized
    • checkWrite Link icon

      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.
      Parameters:
      entry - the entry
      subject - the Subject
      nReason - one of the REASON_* constants
      Throws:
      SecurityException - if the action is not authorized
    • checkReadAny Link icon

      void 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
    • checkWriteAny Link icon

      void 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
    • reasonToString Link icon

      static 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