Class JettySecurityLib

java.lang.Object
org.apache.jena.fuseki.main.JettySecurityLib

public class JettySecurityLib extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static org.apache.jena.atlas.web.AuthScheme
    Current auth mode
    static final org.apache.jena.atlas.web.AuthScheme
    Default setting.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    addPathConstraint(org.eclipse.jetty.ee10.servlet.security.ConstraintSecurityHandler securityHandler, String pathSpec)
     
    static org.eclipse.jetty.security.UserStore
    addUser(org.eclipse.jetty.security.UserStore userStore, String user, String password)
     
    static org.eclipse.jetty.security.UserStore
    addUser(org.eclipse.jetty.security.UserStore userStore, String user, String password, String role)
    Make a UserStore for a single user,password,role
    static org.eclipse.jetty.ee10.servlet.security.ConstraintSecurityHandler
    makeSecurityHandler(String realm, org.eclipse.jetty.security.UserStore userStore)
    Create a Jetty SecurityHandler 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 Jetty SecurityHandler 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 Jetty SecurityHandler for basic authentication.
    static org.eclipse.jetty.security.SecurityHandler
    makeSecurityHandlerForPathspec(String pathSpec, String realm, org.eclipse.jetty.security.UserStore userStore)
    Create a Jetty SecurityHandler for a specific pathSpace, e.g /database.
    static org.eclipse.jetty.security.UserStore
    makeUserStore(String passwordFile)
    Make a UserStore from a password file.
    static org.eclipse.jetty.security.UserStore
    makeUserStore(String user, String password)
    Make a UserStore for a single user, password in any role.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • dftAuthMode

      public static final org.apache.jena.atlas.web.AuthScheme dftAuthMode
      Default setting.
    • authMode

      public static org.apache.jena.atlas.web.AuthScheme authMode
      Current 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 Jetty SecurityHandler 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 Jetty SecurityHandler for basic authentication. See addPathConstraint(ConstraintSecurityHandler, String) for adding the pathspec 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 Jetty SecurityHandler for basic authentication. See addPathConstraint(ConstraintSecurityHandler, String) for adding the pathspec 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 Jetty SecurityHandler for basic authentication. See addPathConstraint(ConstraintSecurityHandler, String) for adding the pathspec to apply it to.
    • addPathConstraint

      public static void addPathConstraint(org.eclipse.jetty.ee10.servlet.security.ConstraintSecurityHandler securityHandler, String pathSpec)
    • makeUserStore

      public static org.eclipse.jetty.security.UserStore makeUserStore(String passwordFile)
      Make a UserStore from a password file. PropertyUserStore for details.
    • makeUserStore

      public static org.eclipse.jetty.security.UserStore makeUserStore(String user, String password)
      Make a UserStore for a single user, password in any role.
    • addUser

      public static org.eclipse.jetty.security.UserStore addUser(org.eclipse.jetty.security.UserStore userStore, String user, String password)
    • addUser

      public static org.eclipse.jetty.security.UserStore addUser(org.eclipse.jetty.security.UserStore userStore, String user, String password, String role)
      Make a UserStore for a single user,password,role