Class DataAccessCtl

java.lang.Object
org.apache.jena.fuseki.access.DataAccessCtl

public class DataAccessCtl extends Object
A library of operations related to data access security for Fuseki
  • Field Details

    • symAuthorizationService

      public static final org.apache.jena.sparql.util.Symbol symAuthorizationService
      Symbol for the AuthorizationService. This is an alternative to DatasetGraphAccessControl.
      See Also:
    • requestUserServlet

      public static final Function<org.apache.jena.fuseki.servlets.HttpAction,String> requestUserServlet
      Get the user from the servlet context via HttpServletRequest.getRemoteUser()
    • paramUserServlet

      public static final Function<org.apache.jena.fuseki.servlets.HttpAction,String> paramUserServlet
      Get the user from ?user query string parameter. Use carefully; for situations where the user name has been authenticated already and is being passed on securely. Also for testing.
  • Constructor Details

    • DataAccessCtl

      public DataAccessCtl()
  • Method Details

    • controlledDataset

      public static org.apache.jena.query.Dataset controlledDataset(org.apache.jena.query.Dataset dsBase, AuthorizationService reg)
      Return a DatasetGraph with added data access control. Use of the original DatasetGraph is not controlled.
    • controlledDataset

      public static org.apache.jena.sparql.core.DatasetGraph controlledDataset(org.apache.jena.sparql.core.DatasetGraph dsgBase, AuthorizationService reg)
      Return a DatasetGraph with added data access control. Use of the original DatasetGraph is not controlled.
    • isAccessControlled

      public static boolean isAccessControlled(org.apache.jena.sparql.core.DatasetGraph dsg)
      Return whether a DatasetGraph has access control, either because it is wrapped in DatasetGraphAccessControl or because it has the context settings.
    • filteredDataset

      public static org.apache.jena.sparql.core.DatasetGraph filteredDataset(org.apache.jena.sparql.core.DatasetGraph dsg, SecurityContext sCxt)
      Return a read-only DatasetGraphFilteredView that fulfils the SecurityContext. See also SecurityContext.filterTDB(org.apache.jena.sparql.core.DatasetGraph, org.apache.jena.query.QueryExecution) which is more efficient. This code creates a general solution.