public class SeraphUtils extends Object
Constructor and Description |
---|
SeraphUtils() |
Modifier and Type | Method and Description |
---|---|
static com.atlassian.seraph.config.SecurityConfig |
getConfig(javax.servlet.http.HttpServletRequest request) |
static String |
getLinkLoginURL(javax.servlet.http.HttpServletRequest request)
Get a login URL with the original request appended as the os_destination.
|
static String |
getLinkLoginURL(javax.servlet.http.HttpServletRequest request,
String username)
Get a login URL and append the given username so that it can be filled into the form if default login mechanism is used.
|
static String |
getLinkLoginURLAndStripContextPath(javax.servlet.http.HttpServletRequest request) |
static String |
getLoginURL(javax.servlet.http.HttpServletRequest request) |
static String |
getOriginalURL(javax.servlet.http.HttpServletRequest request) |
public static String getLoginURL(javax.servlet.http.HttpServletRequest request)
public static String getLinkLoginURL(javax.servlet.http.HttpServletRequest request, String username)
request
- username
- getLinkLoginURL(HttpServletRequest)
public static String getLinkLoginURL(javax.servlet.http.HttpServletRequest request)
If the original request contains the special parameter called atl_after_login_redirect then this will be encoded as the os_destination instead of the original request.
request
- public static String getLinkLoginURLAndStripContextPath(javax.servlet.http.HttpServletRequest request)
public static String getOriginalURL(javax.servlet.http.HttpServletRequest request)
public static com.atlassian.seraph.config.SecurityConfig getConfig(javax.servlet.http.HttpServletRequest request)
Copyright © 2003–2017 Atlassian. All rights reserved.