|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.api.client.extensions.auth.helpers.appengine.AppAssertionCredential
AppAssertionCredential
@Deprecated public final class AppAssertionCredential
Implementation of credentials that is used to communicate with resources managed on behalf of an App Engine application.
| Constructor Summary | |
|---|---|
AppAssertionCredential(String applicationName,
String authorizationServerUrl,
String scope,
String audience)
Deprecated. Create an instance of this class. |
|
| Method Summary | |
|---|---|
boolean |
handleResponse(HttpRequest request,
HttpResponse response,
boolean retrySupported)
Deprecated. |
void |
initialize(HttpRequest request)
Deprecated. |
void |
intercept(HttpRequest request)
Deprecated. |
boolean |
isInvalid()
Deprecated. Determine if the Credential is no longer valid, after being revoked for example. |
void |
postConstruct(HttpTransport transport,
JsonFactory jsonFactory)
Deprecated. Finish building the object. |
void |
setAccessToken(String accessToken)
Deprecated. Set the access token to a new value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AppAssertionCredential(String applicationName,
String authorizationServerUrl,
String scope,
String audience)
postConstruct(com.google.api.client.http.HttpTransport, com.google.api.client.json.JsonFactory) is required before it can be used.
applicationName - Primary key for this data object in the data store. It is usually the
robot name.authorizationServerUrl - Server with which we can exchange an assertion for an access
token.scope - Scope(s) for which this credential will request access.audience - Audience to be used in the JSON web token.| Method Detail |
|---|
public void setAccessToken(String accessToken)
accessToken - New access token or null for none
public void postConstruct(HttpTransport transport,
JsonFactory jsonFactory)
throws IOException
transport - HttpTransport instance to use to access the network.jsonFactory - JsonFactory instance to use to serialize and deserialize auth server
communications.
IOException - Thrown when we are unable to set up access token communications.
public void initialize(HttpRequest request)
throws IOException
initialize in interface HttpRequestInitializerIOException
public void intercept(HttpRequest request)
throws IOException
intercept in interface HttpExecuteInterceptorIOException
public boolean handleResponse(HttpRequest request,
HttpResponse response,
boolean retrySupported)
throws IOException
handleResponse in interface HttpUnsuccessfulResponseHandlerIOExceptionpublic boolean isInvalid()
Credential
isInvalid in interface Credential
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||