|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.google.gwt.user.server.rpc.RemoteServiceServlet
net.pleso.auth.server.DefaultAuthServiceImpl
public class DefaultAuthServiceImpl
Default implementation of AuthService.
Use HttpSession like authentication parameters container.
Extend this implementation in your application for IAuthProvider initialization.
| Constructor Summary | |
|---|---|
DefaultAuthServiceImpl()
|
|
| Method Summary | |
|---|---|
static java.util.Properties |
getAuthProps(javax.servlet.http.HttpServletRequest request)
Statically gets authentication properties by external HttpServletRequest instance. |
IAuthProvider |
getAuthProviderImpl()
Gets IAuthProvider implementation. |
UserInfo |
getUserInfo()
Gets authenticated user information. |
java.lang.String[] |
isAuth()
Check is user authenticated. |
java.lang.String[] |
loginUser(UserInfo user)
Login user with login and password information. |
void |
logout()
Logout user. |
void |
setAuthProviderImpl(IAuthProvider authProviderImpl)
Sets IAuthProvider implementation. |
| Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet |
|---|
doPost, processCall |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultAuthServiceImpl()
| Method Detail |
|---|
public java.lang.String[] loginUser(UserInfo user)
throws AuthenticationException
AuthService
loginUser in interface AuthServiceuser - user information
AuthenticationExceptionpublic void logout()
AuthService
logout in interface AuthService
public java.lang.String[] isAuth()
throws AuthenticationException
AuthService
isAuth in interface AuthServiceAuthenticationException
public UserInfo getUserInfo()
throws AuthenticationException
AuthService
getUserInfo in interface AuthServiceAuthenticationException
public static java.util.Properties getAuthProps(javax.servlet.http.HttpServletRequest request)
throws AuthenticationException
HttpServletRequest instance.
Use DefaultAuthServiceImpl.getAuthProps(this.getThreadLocalRequest()) in your RPC servlet.
request - HttpServletRequest instance from external RPC servlet
AuthenticationExceptionpublic IAuthProvider getAuthProviderImpl()
IAuthProvider implementation.
IAuthProvider implementationpublic void setAuthProviderImpl(IAuthProvider authProviderImpl)
IAuthProvider implementation.
authProviderImpl - IAuthProvider implementation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||