Class JiraPathService

java.lang.Object
com.atlassian.jira.security.JiraPathService
All Implemented Interfaces:
com.atlassian.seraph.Initable, com.atlassian.seraph.SecurityService, Serializable

public class JiraPathService extends Object implements com.atlassian.seraph.SecurityService
A security service that requires the "admin" role for any URL that starts with "/secure/admin/".

JIRA used to use Seraph's own PathService to enforce this, but that is a general purpose service that is really better suited to managing thousands of path-based rules. We only have one rule, so it is overkill and inefficient for our purposes.

Since:
v6.4
See Also:
  • Constructor Details

    • JiraPathService

      public JiraPathService()
  • Method Details

    • init

      public void init(Map<String,String> stringStringMap, com.atlassian.seraph.config.SecurityConfig securityConfig)
      Specified by:
      init in interface com.atlassian.seraph.Initable
    • destroy

      public void destroy()
      Specified by:
      destroy in interface com.atlassian.seraph.SecurityService
    • getRequiredRoles

      public Set<String> getRequiredRoles(javax.servlet.http.HttpServletRequest httpServletRequest)
      Specified by:
      getRequiredRoles in interface com.atlassian.seraph.SecurityService