Class Login

java.lang.Object
com.opensymphony.xwork2.ActionSupport
com.atlassian.bamboo.ww2.BambooActionSupport
com.atlassian.bamboo.rest.Login
All Implemented Interfaces:
JsonStreamingAction, ErrorCollection, BambooSessionAware, NavigationAware, DomainObjectSecurityAware, GlobalBypassSecurityAware, GlobalReadSecurityAware, ReturnUrlAware, com.atlassian.core.i18n.I18nTextProvider, com.atlassian.struts.TextProvider, com.atlassian.struts.ValidationAware, com.opensymphony.xwork.ValidationAware, com.opensymphony.xwork2.Action, com.opensymphony.xwork2.interceptor.ValidationAware, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, Serializable

public class Login extends BambooActionSupport implements GlobalBypassSecurityAware
This class lets a remote user login to obtain a session to access the REST API
See Also:
  • Constructor Details

    • Login

      public Login()
  • Method Details

    • setUsername

      public void setUsername(String username)
      Passed in by the caller - as an http param
      Parameters:
      username - The name of the user logging in
    • setPassword

      public void setPassword(String password)
      Passed in by the caller - as an http param
      Parameters:
      password - The password of the user logging in
    • execute

      public String execute() throws Exception
      Specified by:
      execute in interface com.opensymphony.xwork2.Action
      Overrides:
      execute in class com.opensymphony.xwork2.ActionSupport
      Throws:
      Exception
    • getSessionId

      public String getSessionId()
    • getElevatedSecurityGuard

      protected com.atlassian.seraph.elevatedsecurity.ElevatedSecurityGuard getElevatedSecurityGuard()