org.caleigo.security
Class LoginService.LoginProxyService

java.lang.Object
  extended byorg.caleigo.security.LoginService
      extended byorg.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

Nested Class Summary
 
Nested classes inherited from class org.caleigo.security.LoginService
LoginService.LoginProxyService, LoginService.LoginServiceMessageConsumer
 
Nested classes inherited from class org.caleigo.security.ILoginService
ILoginService.LoginMessage, ILoginService.LoginServiceReturnMessage, ILoginService.LogoutMessage, ILoginService.UserLoginInfo
 
Field Summary
protected  ITunnel mTunnel
           
 
Fields inherited from class org.caleigo.security.LoginService
mLoginHandlers, mLoginInfoProvider, mMessageConsumer, mServiceIdentity
 
Constructor Summary
LoginService.LoginProxyService(java.lang.Object serviceIdentity, ITunnel tunnel)
           
 
Method Summary
 void handleError(java.lang.String message)
           
 boolean isReconnectable()
          Returns true if this IProxyService can be reconnected to an IService.
 UserInfo login()
          Tries to log in a user without supplying any login information.
 boolean logout(UserInfo userInfo)
           
 void reconnect(ITunnel tunnel)
          Tries to reconnect to the provided service.
 void setServiceTunnel(ITunnel tunnel)
          Sets the ITunnel that should be used by this IProxyService.
 
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
 
Methods inherited from interface org.caleigo.service.IService
finalizeService, getCustomProxyService, getServiceIdentity, getServiceInterface, getServiceInterfaceClass, getServiceType, hasCustomProxyService, initializeService, ping
 

Field Detail

mTunnel

protected transient ITunnel mTunnel
Constructor Detail

LoginService.LoginProxyService

public LoginService.LoginProxyService(java.lang.Object serviceIdentity,
                                      ITunnel tunnel)
Method Detail

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.