@Beta @Deprecated public interface ThreeLeggedFlow
Beta
Implementations are required to be PersistenceCapable
for storage in JDO compliant
datastores during user authorization step.
Warning: starting with version 1.7, usage of this for OAuth 2.0 is deprecated. Instead use
AuthorizationCodeFlow
.
Modifier and Type | Method and Description |
---|---|
Credential |
complete(String authorizationCode)
Deprecated.
After the user has authorized the request, the token or code obtained should be passed to this
complete function to allow us to exchange the code with the authentication server for a
Credential . |
String |
getAuthorizationUrl()
Deprecated.
After the object is created, the developer should use this method to interrogate it for the
authorization URL to which the user should be redirected to obtain permission.
|
Credential |
loadCredential(javax.jdo.PersistenceManager pm)
Deprecated.
Convenience function that will load a credential based on the userId for which this flow was
instantiated.
|
void |
setHttpTransport(HttpTransport transport)
Deprecated.
Set
HttpTransport instance for this three legged flow. |
void |
setJsonFactory(JsonFactory jsonFactory)
Deprecated.
Set
JsonFactory instance for this three legged flow. |
String getAuthorizationUrl()
void setHttpTransport(HttpTransport transport)
HttpTransport
instance for this three legged flow.void setJsonFactory(JsonFactory jsonFactory)
JsonFactory
instance for this three legged flow.Credential loadCredential(javax.jdo.PersistenceManager pm)
pm
- PersistenceManager
instance which this flow should use to interact with the
data store. The caller must remember to call PersistenceManager.close()
after this
method returns.Credential
object or null
if none exists.Credential complete(String authorizationCode) throws IOException
Credential
.authorizationCode
- Code or token obtained after the user grants permissionCredential
object that is obtained from token serverIOException
Copyright © 2011–2022 Google. All rights reserved.