org.apache.abdera.ext.gdata
Class GoogleLoginAuthCredentials
java.lang.Object
org.apache.abdera.ext.gdata.GoogleLoginAuthCredentials
- All Implemented Interfaces:
- org.apache.commons.httpclient.Credentials
public final class GoogleLoginAuthCredentials
- extends java.lang.Object
- implements org.apache.commons.httpclient.Credentials
When using the GoogleLoginAuthScheme with the typical Commons Client
UsernamePasswordCredentials, the AuthScheme implementation will request
a new auth token from the Google server for every request. To make it
a more efficient, clients can use GoogleLoginAuthCredentials which will
perform the Google Auth once to get the auth token which will be reused
for every request.
GoogleLoginAuthScheme.register();
Client client = new CommonsClient();
GoogleLoginAuthCredentials credentials =
new GoogleLoginAuthCredentials(
"email", "password", "blogger");
client.addCredentials(
"http://beta.blogger.com",
null, null,
credentials);
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GoogleLoginAuthCredentials
public GoogleLoginAuthCredentials(java.lang.String auth)
GoogleLoginAuthCredentials
public GoogleLoginAuthCredentials(java.lang.String id,
java.lang.String pwd,
java.lang.String service)
getAuth
public java.lang.String getAuth()
getService
public java.lang.String getService()