org.caleigo.security
Class LoginService.LoginProxyService
java.lang.Object
org.caleigo.security.LoginService
org.caleigo.security.LoginService.LoginProxyService
- All Implemented Interfaces:
- IDistributable, ILoginService, IProxyService, IService, java.io.Serializable
- Enclosing class:
- LoginService
- protected static class LoginService.LoginProxyService
- extends LoginService
- implements IProxyService
- See Also:
- Serialized Form
Methods inherited from class org.caleigo.security.LoginService |
addLoginHandler, finalizeService, getCustomProxyService, getMaximumNumberOfLoginTries, getServiceIdentity, getServiceInterface, getServiceInterfaceClass, getServiceType, hasCustomProxyService, initializeService, login, login, ping, removeLoginHandler, setLoginInfoProvider, updateUserInfo |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mTunnel
protected transient ITunnel mTunnel
LoginService.LoginProxyService
public LoginService.LoginProxyService(java.lang.Object serviceIdentity,
ITunnel tunnel)
login
public UserInfo login()
- Tries to log in a user without supplying any login information. This
method preferably uses descendants of ILoginInfoProvider to
figure out the login information for the user.
- Specified by:
login
in interface ILoginService
- Overrides:
login
in class LoginService
logout
public boolean logout(UserInfo userInfo)
throws java.lang.SecurityException
- Specified by:
logout
in interface ILoginService
- Overrides:
logout
in class LoginService
- Throws:
java.lang.SecurityException
handleError
public void handleError(java.lang.String message)
- Specified by:
handleError
in interface ILoginService
- Overrides:
handleError
in class LoginService
isReconnectable
public boolean isReconnectable()
- Returns
true
if this IProxyService can be reconnected to
an IService.
- Specified by:
isReconnectable
in interface IProxyService
reconnect
public void reconnect(ITunnel tunnel)
throws ServiceException
- Tries to reconnect to the provided service. If the reconnection fails
or if this IProxyService doesn't support reconnection an exception is
thrown.
- Specified by:
reconnect
in interface IProxyService
- Throws:
ServiceException
setServiceTunnel
public void setServiceTunnel(ITunnel tunnel)
- Sets the ITunnel that should be used by this IProxyService.
- Specified by:
setServiceTunnel
in interface IProxyService
Copyright © 2005 Caleigo. All Rights Reserved.