|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.component.gae.login.GLoginServiceImpl
public class GLoginServiceImpl
Implements the interactions with Google's authentication and authorization services. If the endpoint is configured to run in development mode the authentication and authorization services of the development server are used.
Constructor Summary | |
---|---|
GLoginServiceImpl()
|
Method Summary | |
---|---|
void |
authenticate(GLoginData data)
Authenticates a user and stores the authentication token to GLoginData.setAuthenticationToken(String) . |
void |
authorize(GLoginData data)
Dispatches authorization to authorizeDev(GLoginData) if the
endpoint is configured to run in development mode, otherwise to
authorizeStd(GLoginData) . |
protected void |
authorizeDev(GLoginData data)
Authorizes access to a development server and stores the resulting authorization cookie to GLoginData.setAuthorizationCookie(String)
. |
protected void |
authorizeStd(GLoginData data)
Authorizes access to a Google App Engine application and stores the resulting authorization cookie to GLoginData.setAuthorizationCookie(String) . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GLoginServiceImpl()
Method Detail |
---|
public void authenticate(GLoginData data) throws com.google.gdata.util.AuthenticationException
GLoginData.setAuthenticationToken(String)
. If the endpoint is
configured to run in development mode this method simply returns without
any further action.
authenticate
in interface GLoginService
data
- authentication input data and response data (authentication
token) container.
com.google.gdata.util.AuthenticationException
public void authorize(GLoginData data) throws Exception
authorizeDev(GLoginData)
if the
endpoint is configured to run in development mode, otherwise to
authorizeStd(GLoginData)
.
authorize
in interface GLoginService
data
- authentication input data and response data (authorization
cookie) container.
Exception
protected void authorizeDev(GLoginData data) throws Exception
GLoginData.setAuthorizationCookie(String)
. Authorization in development mode doesn't require an authentication
token.
Exception
protected void authorizeStd(GLoginData data) throws Exception
GLoginData.setAuthorizationCookie(String)
. This method requires
an authentication token from
GLoginData.getAuthenticationToken()
.
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |