public class CrowdUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static com.atlassian.crowd.integration.http.CrowdHttpAuthenticator |
authenticator |
private static java.lang.String |
CROWD_AUTHENTICATED_KEY |
private static org.apache.commons.logging.Log |
LOG |
Constructor and Description |
---|
CrowdUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
authenticate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String username,
java.lang.String password) |
private static void |
ensureAuthenticator() |
static java.lang.String |
getCrowdUsername(javax.servlet.http.HttpServletRequest request) |
static boolean |
isAuthenticated(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
static boolean |
isCrowdAuthenticated(User user) |
static boolean |
isCrowdEnabled() |
static void |
logout(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
static void |
setCrowdAuthenticated(User user) |
private static final org.apache.commons.logging.Log LOG
private static final java.lang.String CROWD_AUTHENTICATED_KEY
private static com.atlassian.crowd.integration.http.CrowdHttpAuthenticator authenticator
public static boolean isCrowdEnabled()
public static boolean authenticate(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String username, java.lang.String password)
public static boolean isAuthenticated(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
public static java.lang.String getCrowdUsername(javax.servlet.http.HttpServletRequest request)
public static void logout(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
public static void setCrowdAuthenticated(User user)
public static boolean isCrowdAuthenticated(User user)
private static void ensureAuthenticator()