# Package com.google.appengine.api.oauth (5.0.3)

Provides a method for clients to access server resources on behalf of a resource owner, as well
as a process for end-users to authorize third-party access to their server resources without
sharing their credentials.
See Also: [com.google.appengine.api.oauth.OAuthService](https://docs.cloud.google.com/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.oauth.OAuthService), [The OAuth Java API in the *Google App Engine Developer's Guide*](http://cloud.google.com/appengine/docs/java/oauth/).

## Classes

### [IOAuthServiceFactoryProvider](https://docs.cloud.google.com/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.oauth.IOAuthServiceFactoryProvider)

Factory provider for [IOAuthServiceFactory](https://docs.cloud.google.com/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.oauth.IOAuthServiceFactory).

**Note:** This class is not intended for end users.

### [OAuthServiceFactory](https://docs.cloud.google.com/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.oauth.OAuthServiceFactory)

Creates an OAuthService.

## Interfaces

### [IOAuthServiceFactory](https://docs.cloud.google.com/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.oauth.IOAuthServiceFactory)

Creates an OAuthService.

### [OAuthService](https://docs.cloud.google.com/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.oauth.OAuthService)

The OAuthService provides methods useful for validating OAuth requests.
See Also: [RFC 5849](http://tools.ietf.org/html/rfc5849) for the OAuth specification.

## Exceptions

### [InvalidOAuthParametersException](https://docs.cloud.google.com/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.oauth.InvalidOAuthParametersException)

`InvalidOAuthParametersException` is thrown when a request is a
malformed OAuth request (for example, it omits a required parameter or
contains an invalid signature).

### [InvalidOAuthTokenException](https://docs.cloud.google.com/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.oauth.InvalidOAuthTokenException)

`InvalidOAuthTokenException` is thrown when a request contains an
invalid OAuth token (for example, a token that has been revoked by the user).

### [OAuthRequestException](https://docs.cloud.google.com/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.oauth.OAuthRequestException)

`OAuthRequestException` is thrown when a request is not a valid OAuth
request.

### [OAuthServiceFailureException](https://docs.cloud.google.com/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.oauth.OAuthServiceFailureException)

`OAuthServiceFailureException` is thrown when any unknown error occurs
while communicating with the OAuth service.