public class GLoginServiceImpl extends Object implements GLoginService
Constructor and Description |
---|
GLoginServiceImpl() |
Modifier and Type | Method and Description |
---|---|
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) . |
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
Apache Camel