OAuthService (Google App Engine API for Java)

com.google.appengine.api.oauth

Interface OAuthService



  • public interface OAuthService
    The OAuthService provides methods useful for validating OAuth requests.
    See Also:
    RFC 5849 for the OAuth specification.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      java.lang.String[] getAuthorizedScopes(java.lang.String... scopes)
      Return authorized scopes from input scopes.
      java.lang.String getClientId(java.lang.String... scopes)
      Returns the client_id from oauth2 request.
      java.lang.String getClientId(java.lang.String scope)
      Returns the client_id from oauth2 request.
      User getCurrentUser()
      Returns the User on whose behalf the request was made.
      User getCurrentUser(java.lang.String... scopes)
      Returns the User on whose behalf the request was made.
      User getCurrentUser(java.lang.String scope)
      Returns the User on whose behalf the request was made.
      java.lang.String getOAuthConsumerKey()
      Returns the oauth_consumer_key OAuth parameter from the request.
      boolean isUserAdmin()
      Returns true if the user on whose behalf the request was made is an admin for this application, false otherwise.
      boolean isUserAdmin(java.lang.String... scopes)
      Returns true if the user on whose behalf the request was made is an admin for this application, false otherwise.
      boolean isUserAdmin(java.lang.String scope)
      Returns true if the user on whose behalf the request was made is an admin for this application, false otherwise.

Send feedback about...