Interface SecurityContext

All Known Implementing Classes:
SecurityContextImpl

public interface SecurityContext
The security context of the current principal and factory for Guards.
  • Method Details

    • getPrincipal

      Principal getPrincipal()
      Returns:
      The principal, may be anonymous.
    • getSessionId

      @Nullable @Nullable UUID getSessionId()
    • getGuard

      Guard getGuard(Object client)
      Returns a Guard for exactly one client.
      Parameters:
      client - For example an Entity or an EntityManager.
    • getGuardForList

      ListGuard getGuardForList(List<?> clients)
      Returns:
      A ListGuard for efficiently evaluating permissions of multiple objects of the same type.
    • getPolicy

      Policy getPolicy()
      Returns:
      the unfiltered policy contained in this SecurityContext
    • prepareCondition

      @Nullable @Nullable Node prepareCondition(Node condition) throws EvaluationException
      Throws:
      EvaluationException
    • destroy

      void destroy()