com.atlassian.jira.bc.security.login
Interface LoginResult

All Known Implementing Classes:
LoginResultImpl

public interface LoginResult

A result object for login operations

Since:
v4.0.1

Method Summary
 LoginInfo getLoginInfo()
           
 LoginReason getReason()
          If the login fails then this enum describes why
 java.lang.String getUserName()
           
 boolean isOK()
           
 

Method Detail

isOK

boolean isOK()
Returns:
true if all is OK. In this case getReason() will equals LoginReason.OK

getUserName

java.lang.String getUserName()
Returns:
the name of the user that the login was performed for or null if its not known

getReason

LoginReason getReason()
If the login fails then this enum describes why

Returns:
the LoginReason

getLoginInfo

LoginInfo getLoginInfo()
Returns:
The LoginInfo associated with the user or null if the getUserName() returns null.


Copyright © 2002-2011 Atlassian. All Rights Reserved.