com.atlassian.jira.bc.security.login
Class LoginResultImpl
java.lang.Object
com.atlassian.jira.bc.security.login.LoginResultImpl
- All Implemented Interfaces:
- LoginResult
public class LoginResultImpl
- extends java.lang.Object
- implements LoginResult
Simple Implementation of LoginResult
- Since:
- v4.0.1
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LoginResultImpl
public LoginResultImpl(LoginReason reason,
LoginInfo loginInfo,
java.lang.String userName)
isOK
public boolean isOK()
- Specified by:
isOK
in interface LoginResult
- Returns:
- true if all is OK. In this case
LoginResult.getReason()
will equals LoginReason.OK
getUserName
public java.lang.String getUserName()
- Specified by:
getUserName
in interface LoginResult
- Returns:
- the name of the user that the login was performed for or null if its not known
getReason
public LoginReason getReason()
- Description copied from interface:
LoginResult
- If the login fails then this enum describes why
- Specified by:
getReason
in interface LoginResult
- Returns:
- the
LoginReason
getLoginInfo
public LoginInfo getLoginInfo()
- Specified by:
getLoginInfo
in interface LoginResult
- Returns:
- The
LoginInfo
associated with the user or null if the LoginResult.getUserName()
returns null.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2002-2010 Atlassian. All Rights Reserved.