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 Deprecated 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()
      Deprecated. 
      OAuth1 is no longer supported
      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.
本頁內容對您是否有任何幫助?請提供意見:

傳送您對下列選項的寶貴意見...

這個網頁
App Engine standard environment for Java