info.magnolia.cms.security.auth.login
Class LoginResult
java.lang.Object
info.magnolia.cms.security.auth.login.LoginResult
public class LoginResult
- extends Object
The result of a login operation.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STATUS_NO_LOGIN
public static final int STATUS_NO_LOGIN
- See Also:
- Constant Field Values
NOT_HANDLED
public static LoginResult NOT_HANDLED
- Returned if a login handler is not able to perform the operation.
NO_LOGIN
public static LoginResult NO_LOGIN
- Returned if a login handler was able to perform the operation but the authentication failed.
STATUS_IN_PROCESS
public static final int STATUS_IN_PROCESS
- See Also:
- Constant Field Values
STATUS_NOT_HANDLED
public static final int STATUS_NOT_HANDLED
- See Also:
- Constant Field Values
STATUS_FAILED
public static final int STATUS_FAILED
- See Also:
- Constant Field Values
STATUS_SUCCEEDED
public static final int STATUS_SUCCEEDED
- See Also:
- Constant Field Values
LoginResult
public LoginResult(int status)
LoginResult
public LoginResult(int status,
LoginException loginException)
LoginResult
public LoginResult(int status,
Subject subject)
getStatus
public int getStatus()
getSubject
public Subject getSubject()
getLoginException
public LoginException getLoginException()
- Returns:
- an instance of
LoginException
. Warning: it can be null.
setCurrentLoginResult
public static void setCurrentLoginResult(LoginResult loginResult)
- Used by the login filter to depose the login result.
getCurrentLoginResult
public static LoginResult getCurrentLoginResult()
Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.