|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.api.client.googleapis.auth.oauth.GoogleOAuthDomainWideDelegation
GoogleCredential
@Deprecated public final class GoogleOAuthDomainWideDelegation
Google's OAuth domain-wide delegation requires an e-mail address of the user whose data you are
trying to access via requestorId on every HTTP request.
Sample usage, taking advantage that this class implements HttpRequestInitializer:
public static HttpRequestFactory createRequestFactory(HttpTransport transport) {
GoogleOAuthDomainWideDelegation initializer = new GoogleOAuthDomainWideDelegation();
initializer.requestorId = "...";
OAuthParameters parameters = new OAuthParameters();
// parameters...
initializer.parameters = parameters;
return transport.createRequestFactory(initializer);
}
If you have a custom request initializer, take a look at the sample usage for
HttpExecuteInterceptor, which this class also implements.
| Nested Class Summary | |
|---|---|
static class |
GoogleOAuthDomainWideDelegation.Url
Deprecated. Generic URL that extends GoogleUrl and also provides the GoogleOAuthDomainWideDelegation.Url.requestorId
parameter. |
| Field Summary | |
|---|---|
OAuthParameters |
parameters
Deprecated. OAuth parameters. |
String |
requestorId
Deprecated. Email address of the user whose data you are trying to access. |
| Constructor Summary | |
|---|---|
GoogleOAuthDomainWideDelegation()
Deprecated. |
|
| Method Summary | |
|---|---|
void |
initialize(HttpRequest request)
Deprecated. |
void |
intercept(HttpRequest request)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public String requestorId
public OAuthParameters parameters
| Constructor Detail |
|---|
public GoogleOAuthDomainWideDelegation()
| Method Detail |
|---|
public void initialize(HttpRequest request)
initialize in interface HttpRequestInitializer
public void intercept(HttpRequest request)
throws IOException
intercept in interface HttpExecuteInterceptorIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||