com.pramati.bfly.das.helper
Class DekohLoginManager
java.lang.Object
com.pramati.bfly.das.api.AbstractLoginManager
com.pramati.bfly.das.helper.DekohLoginManager
public class DekohLoginManager
- extends AbstractLoginManager
- Since:
- 30 Oct, 2007
|
Method Summary |
boolean |
autoLogin(HttpServletRequest request,
HttpServletResponse response,
String token,
String userName)
|
String |
getLoginURL(HttpServletRequest request)
Same as calling getLoginURL(request,null) |
String |
getLoginURL(HttpServletRequest request,
String redirectURL)
Content Applications can use this method's return value to href the user to login page. |
String |
getServerFacadeUrl(HttpServletRequest request,
String redirectURL,
ServerFacade.Actions action)
|
protected void |
initializeDas(String user)
|
boolean |
isFirstTimeAccess(String user)
To check whether this user is accessing this desktop for the first time. |
void |
logout(DesktopUser desktopUser)
|
void |
logout(HttpServletRequest request,
HttpServletResponse response)
To invalidate an authenticated session. |
protected void |
postLogin(HttpServletRequest request,
HttpServletResponse response,
DesktopUser desktopUser)
|
protected void |
postLogout(DesktopUser desktopUser)
|
protected void |
registerDesktop(DesktopUser desktopUser)
|
| Methods inherited from class com.pramati.bfly.das.api.AbstractLoginManager |
authenticate, authenticate, authenticateUser, authenticateUser, authenticateUserWithSSO, authenticateWithSSO, deregisterLoginListener, doLogout, generateDasCookie, getActualRequestUrl, getLocalUserNames, getUserConfigFile, refresh, registerLoginListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DekohLoginManager
public DekohLoginManager(File userConfig,
NetworkCallbackSource source,
LoginClient authClient,
SSOLoginClient ssoLoginClient)
getLoginURL
public String getLoginURL(HttpServletRequest request)
throws IOException
- Same as calling
getLoginURL(request,null)
- Parameters:
request -
- Returns:
-
- Throws:
IOException
isFirstTimeAccess
public boolean isFirstTimeAccess(String user)
- To check whether this
user is accessing this desktop for the first time. same as invoking
!getLocalUserNames().contains(user)
- Parameters:
user - userName of the DesktopUser.
- Returns:
- true, if this user never accessed this Dekoh Desktop. else return false.
getLoginURL
public String getLoginURL(HttpServletRequest request,
String redirectURL)
throws IOException
- Content Applications can use this method's return value to href the user to login page.
- Parameters:
request - Current httpServletRequest. If request has any query string parameters they are passed back to
redirectURLredirectURL - url to redirect to after login is successful. If redirectURL is null, It would the URL the
client used to make the request.
- Returns:
- URL of the login page to connect local user to Cental Authentication Server.
- Throws:
IOException
getServerFacadeUrl
public String getServerFacadeUrl(HttpServletRequest request,
String redirectURL,
ServerFacade.Actions action)
throws IOException
- Throws:
IOException
initializeDas
protected void initializeDas(String user)
throws IOException
- Throws:
IOException
autoLogin
public boolean autoLogin(HttpServletRequest request,
HttpServletResponse response,
String token,
String userName)
throws IOException,
ProxyAuthenticationFailedException
- Throws:
IOException
ProxyAuthenticationFailedException
postLogin
protected void postLogin(HttpServletRequest request,
HttpServletResponse response,
DesktopUser desktopUser)
throws IOException
- Specified by:
postLogin in class AbstractLoginManager
- Throws:
IOException
registerDesktop
protected void registerDesktop(DesktopUser desktopUser)
throws IOException
- Throws:
IOException
logout
public void logout(HttpServletRequest request,
HttpServletResponse response)
- To invalidate an authenticated session. Accessing any secure page after invoking this api, needs relogin.
- Parameters:
request - httpServletRequest in which application wants to logout the authenticated user.response - httpServletResponse which is updated, after authenticated user is successfully invalidated.- See Also:
DekohLoginManager.getLoginURL(javax.servlet.http.HttpServletRequest,String)
logout
public void logout(DesktopUser desktopUser)
postLogout
protected void postLogout(DesktopUser desktopUser)
- Specified by:
postLogout in class AbstractLoginManager
© 2009 Pramati Technologies - Dekoh - Portal for Developers