java.lang.Object
org.apache.jena.fuseki.main.JettySecurityLib
-
Field Summary
Modifier and TypeFieldDescriptionstatic org.apache.jena.atlas.web.AuthScheme
Current auth modestatic final org.apache.jena.atlas.web.AuthScheme
Default setting. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addPathConstraint
(org.eclipse.jetty.ee10.servlet.security.ConstraintSecurityHandler securityHandler, String pathSpec) static org.eclipse.jetty.security.UserStore
static org.eclipse.jetty.security.UserStore
Make aUserStore
for a single user,password,rolestatic org.eclipse.jetty.ee10.servlet.security.ConstraintSecurityHandler
makeSecurityHandler
(String realm, org.eclipse.jetty.security.UserStore userStore) Create a JettySecurityHandler
for basic authentication.static org.eclipse.jetty.ee10.servlet.security.ConstraintSecurityHandler
makeSecurityHandler
(String realm, org.eclipse.jetty.security.UserStore userStore, org.apache.jena.atlas.web.AuthScheme authMode) Create a JettySecurityHandler
for basic authentication.static org.eclipse.jetty.ee10.servlet.security.ConstraintSecurityHandler
makeSecurityHandler$
(String realm, org.eclipse.jetty.security.UserStore userStore, org.apache.jena.atlas.web.AuthScheme authMode) Create a JettySecurityHandler
for basic authentication.static org.eclipse.jetty.security.SecurityHandler
makeSecurityHandlerForPathspec
(String pathSpec, String realm, org.eclipse.jetty.security.UserStore userStore) Create a JettySecurityHandler
for a specific pathSpace, e.g/database
.static org.eclipse.jetty.security.UserStore
makeUserStore
(String passwordFile) Make aUserStore
from a password file.static org.eclipse.jetty.security.UserStore
makeUserStore
(String user, String password) Make aUserStore
for a single user, password in any role.
-
Field Details
-
dftAuthMode
public static final org.apache.jena.atlas.web.AuthScheme dftAuthModeDefault setting. -
authMode
public static org.apache.jena.atlas.web.AuthScheme authModeCurrent auth mode
-
-
Constructor Details
-
JettySecurityLib
public JettySecurityLib()
-
-
Method Details
-
makeSecurityHandlerForPathspec
public static org.eclipse.jetty.security.SecurityHandler makeSecurityHandlerForPathspec(String pathSpec, String realm, org.eclipse.jetty.security.UserStore userStore) Create a JettySecurityHandler
for a specific pathSpace, e.g/database
. -
makeSecurityHandler
public static org.eclipse.jetty.ee10.servlet.security.ConstraintSecurityHandler makeSecurityHandler(String realm, org.eclipse.jetty.security.UserStore userStore) Create a JettySecurityHandler
for basic authentication. See addPathConstraint(ConstraintSecurityHandler, String) for adding thepathspec
to apply it to. -
makeSecurityHandler
public static org.eclipse.jetty.ee10.servlet.security.ConstraintSecurityHandler makeSecurityHandler(String realm, org.eclipse.jetty.security.UserStore userStore, org.apache.jena.atlas.web.AuthScheme authMode) Create a JettySecurityHandler
for basic authentication. See addPathConstraint(ConstraintSecurityHandler, String) for adding thepathspec
to apply it to. -
makeSecurityHandler$
public static org.eclipse.jetty.ee10.servlet.security.ConstraintSecurityHandler makeSecurityHandler$(String realm, org.eclipse.jetty.security.UserStore userStore, org.apache.jena.atlas.web.AuthScheme authMode) Create a JettySecurityHandler
for basic authentication. See addPathConstraint(ConstraintSecurityHandler, String) for adding thepathspec
to apply it to. -
addPathConstraint
public static void addPathConstraint(org.eclipse.jetty.ee10.servlet.security.ConstraintSecurityHandler securityHandler, String pathSpec) -
makeUserStore
Make aUserStore
from a password file.PropertyUserStore
for details. -
makeUserStore
Make aUserStore
for a single user, password in any role. -
addUser
-
addUser
public static org.eclipse.jetty.security.UserStore addUser(org.eclipse.jetty.security.UserStore userStore, String user, String password, String role) Make aUserStore
for a single user,password,role
-