com.google.api.client.googleapis.auth.storage
Class GoogleStorageAuthentication

java.lang.Object
  extended by com.google.api.client.googleapis.auth.storage.GoogleStorageAuthentication
All Implemented Interfaces:
com.google.api.client.http.HttpExecuteInterceptor, com.google.api.client.http.HttpRequestInitializer

Deprecated. (scheduled to be removed in 1.6) Use OAuth 2.0 instead

@Deprecated
public final class GoogleStorageAuthentication
extends Object
implements com.google.api.client.http.HttpExecuteInterceptor, com.google.api.client.http.HttpRequestInitializer

Google Storage for Developers has a custom authentication method described in Authentication .

Sample usage, taking advantage that this class implements HttpRequestInitializer:

  public static HttpRequestFactory createRequestFactory(HttpTransport transport) {
    return transport.createRequestFactory(new GoogleStorageAuthentication(...));
  }
 

If you have a custom request initializer, take a look at the sample usage for HttpExecuteInterceptor, which this class also implements.

Since:
1.0
Author:
Yaniv Inbar

Constructor Summary
GoogleStorageAuthentication(String accessKey, String secret)
          Deprecated.  
 
Method Summary
 void initialize(com.google.api.client.http.HttpRequest request)
          Deprecated.  
 void intercept(com.google.api.client.http.HttpRequest request)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GoogleStorageAuthentication

public GoogleStorageAuthentication(String accessKey,
                                   String secret)
Deprecated. 
Parameters:
accessKey - 20 character access key that identifies the client accessing the stored data
secret - secret associated with the access key
Since:
1.4
Method Detail

initialize

public void initialize(com.google.api.client.http.HttpRequest request)
Deprecated. 
Specified by:
initialize in interface com.google.api.client.http.HttpRequestInitializer

intercept

public void intercept(com.google.api.client.http.HttpRequest request)
               throws IOException
Deprecated. 
Specified by:
intercept in interface com.google.api.client.http.HttpExecuteInterceptor
Throws:
IOException


Copyright © 2010-2011 Google. All Rights Reserved.