public class LoginResult extends Object
Modifier and Type | Field and Description |
---|---|
static LoginResult |
NO_LOGIN
Returned if a login handler was able to perform the operation but the authentication failed.
|
static LoginResult |
NOT_HANDLED
Returned if a login handler is not able to perform the operation.
|
static int |
STATUS_FAILED |
static int |
STATUS_IN_PROCESS |
static int |
STATUS_NO_LOGIN |
static int |
STATUS_NOT_HANDLED |
static int |
STATUS_SUCCEEDED |
static int |
STATUS_SUCCEEDED_REDIRECT_REQUIRED
Special status indicating that login was successful but was done via a method that requires
redirection, e.g. via form from POST request in order to prevent logging in
via Back button after logout.
|
Constructor and Description |
---|
LoginResult(int status) |
LoginResult(int status,
LoginException loginException) |
LoginResult(int status,
Subject subject) |
Modifier and Type | Method and Description |
---|---|
static LoginResult |
getCurrentLoginResult() |
LoginException |
getLoginException() |
int |
getStatus() |
Subject |
getSubject() |
static void |
setCurrentLoginResult(LoginResult loginResult)
Used by the login filter to depose the login result.
|
public static final int STATUS_NO_LOGIN
public static LoginResult NOT_HANDLED
public static LoginResult NO_LOGIN
public static final int STATUS_IN_PROCESS
public static final int STATUS_NOT_HANDLED
public static final int STATUS_FAILED
public static final int STATUS_SUCCEEDED
public static final int STATUS_SUCCEEDED_REDIRECT_REQUIRED
public LoginResult(int status)
public LoginResult(int status, LoginException loginException)
public LoginResult(int status, Subject subject)
public int getStatus()
public Subject getSubject()
public LoginException getLoginException()
LoginException
. Warning: it can be null.public static void setCurrentLoginResult(LoginResult loginResult)
public static LoginResult getCurrentLoginResult()
Copyright © 2003–2017 Magnolia International Ltd.. All rights reserved.