java.lang.Object
org.apache.jena.fuseki.access.DataAccessCtl
A library of operations related to data access security for Fuseki
-
Field Summary
FieldsModifier and TypeFieldDescriptionGet the user from?userquery string parameter.Get the user from the servlet context viaHttpServletRequest.getRemoteUser()static final org.apache.jena.sparql.util.SymbolSymbol for theAuthorizationService. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.jena.query.DatasetcontrolledDataset(org.apache.jena.query.Dataset dsBase, AuthorizationService reg) Return aDatasetGraphwith added data access control.static org.apache.jena.sparql.core.DatasetGraphcontrolledDataset(org.apache.jena.sparql.core.DatasetGraph dsgBase, AuthorizationService reg) Return aDatasetGraphwith added data access control.static org.apache.jena.sparql.core.DatasetGraphfilteredDataset(org.apache.jena.sparql.core.DatasetGraph dsg, SecurityContext sCxt) Return a read-onlyDatasetGraphFilteredViewthat fulfils theSecurityContext.static booleanisAccessControlled(org.apache.jena.sparql.core.DatasetGraph dsg) Return whether aDatasetGraphhas access control, either because it is wrapped inDatasetGraphAccessControlor because it has the context settings.
-
Field Details
-
symAuthorizationService
public static final org.apache.jena.sparql.util.Symbol symAuthorizationServiceSymbol for theAuthorizationService. This is an alternative toDatasetGraphAccessControl.- See Also:
-
requestUserServlet
Get the user from the servlet context viaHttpServletRequest.getRemoteUser() -
paramUserServlet
Get the user from?userquery 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 aDatasetGraphwith added data access control. Use of the originalDatasetGraphis not controlled. -
controlledDataset
public static org.apache.jena.sparql.core.DatasetGraph controlledDataset(org.apache.jena.sparql.core.DatasetGraph dsgBase, AuthorizationService reg) Return aDatasetGraphwith added data access control. Use of the originalDatasetGraphis not controlled. -
isAccessControlled
public static boolean isAccessControlled(org.apache.jena.sparql.core.DatasetGraph dsg) Return whether aDatasetGraphhas access control, either because it is wrapped inDatasetGraphAccessControlor 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-onlyDatasetGraphFilteredViewthat fulfils theSecurityContext. See alsoSecurityContext.filterTDB(org.apache.jena.sparql.core.DatasetGraph, org.apache.jena.query.QueryExecution)which is more efficient. This code creates a general solution.
-