Package | Description |
---|---|
com.google.api.client.auth.oauth2 |
Implementation of the OAuth 2.0 Authorization
Framework.
|
com.google.api.client.extensions.servlet.auth.oauth2 |
OAuth 2.0 utilities that help simplify the authorization flow in HTTP servlets.
|
Modifier and Type | Method and Description |
---|---|
AuthorizationCodeResponseUrl |
AuthorizationCodeResponseUrl.clone() |
AuthorizationCodeResponseUrl |
AuthorizationCodeResponseUrl.set(String fieldName,
Object value) |
AuthorizationCodeResponseUrl |
AuthorizationCodeResponseUrl.setCode(String code)
Sets the authorization code generated by the authorization server or
null for none. |
AuthorizationCodeResponseUrl |
AuthorizationCodeResponseUrl.setError(String error)
Sets the error code (
"invalid_request" , "unauthorized_client" ,
"access_denied" , "unsupported_response_type" , "invalid_scope" ,
"server_error" , "temporarily_unavailable" , or an extension error code as
specified in Defining Additional Error
Codes) or null for none. |
AuthorizationCodeResponseUrl |
AuthorizationCodeResponseUrl.setErrorDescription(String errorDescription)
Sets the human-readable text providing additional information used to assist the client
developer in understanding the error that occurred or
null for none. |
AuthorizationCodeResponseUrl |
AuthorizationCodeResponseUrl.setErrorUri(String errorUri)
Sets the URI identifying a human-readable web page with information about the error used to
provide the client developer with additional information about the error or
null for
none. |
AuthorizationCodeResponseUrl |
AuthorizationCodeResponseUrl.setState(String state)
Sets the state parameter matching the state parameter in the authorization request or
null for none. |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractAuthorizationCodeCallbackServlet.onError(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
AuthorizationCodeResponseUrl errorResponse)
Handles an error to the authorization, such as when an end user denies authorization.
|
Copyright © 2011–2019 Google. All rights reserved.