public class LoginResultImpl extends Object implements LoginResult
LoginResult
Constructor and Description |
---|
LoginResultImpl(LoginReason reason,
LoginInfo loginInfo,
String userName) |
LoginResultImpl(LoginReason reason,
LoginInfo loginInfo,
String userName,
Set<DeniedReason> deniedReasons) |
Modifier and Type | Method and Description |
---|---|
Set<DeniedReason> |
getDeniedReasons()
Returns a Set of DenialReason objects, which can be used to determine the reason why a login request has been
denied.
|
LoginInfo |
getLoginInfo() |
LoginReason |
getReason()
If the login fails then this enum describes why
|
String |
getUserName() |
boolean |
isOK() |
String |
toString() |
public LoginResultImpl(LoginReason reason, LoginInfo loginInfo, String userName)
public LoginResultImpl(LoginReason reason, LoginInfo loginInfo, String userName, Set<DeniedReason> deniedReasons)
public boolean isOK()
isOK
in interface LoginResult
LoginResult.getReason()
will equals LoginReason.OK
public String getUserName()
getUserName
in interface LoginResult
public LoginReason getReason()
LoginResult
getReason
in interface LoginResult
LoginReason
public LoginInfo getLoginInfo()
getLoginInfo
in interface LoginResult
LoginInfo
associated with the user or null if the LoginResult.getUserName()
returns null.public Set<DeniedReason> getDeniedReasons()
LoginResult
LoginResult.getReason()
!= LoginReason.AUTHENTICATION_DENIED
.getDeniedReasons
in interface LoginResult
Copyright © 2002-2017 Atlassian. All Rights Reserved.