Class JiraSeraphSecurityService

java.lang.Object
com.atlassian.jira.plugin.webwork.JiraSeraphSecurityService
All Implemented Interfaces:
com.atlassian.seraph.Initable, com.atlassian.seraph.SecurityService, Serializable

public class JiraSeraphSecurityService extends Object implements com.atlassian.seraph.SecurityService
JiraSeraphSecurityService configures Seraph based on Webwork plugin module atlassian-plugin.xml

This allows for the roles-required attribute to be used within plugins and for pluggable Authorisation as well.

Since:
v5.0
See Also:
  • Constructor Details

    • JiraSeraphSecurityService

      public JiraSeraphSecurityService()
  • Method Details

    • init

      public void init(Map<String,String> params, com.atlassian.seraph.config.SecurityConfig config)
      Seraph Initable initialisation method. As we rely on plugin events to setup our required roles, we don't do anything here
      Specified by:
      init in interface com.atlassian.seraph.Initable
    • destroy

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

      public Set<String> getRequiredRoles(javax.servlet.http.HttpServletRequest request)
      This hands off to the LoginManager, who is able to live in the pico container
      Specified by:
      getRequiredRoles in interface com.atlassian.seraph.SecurityService