com.pras.auth
Class BasicAuthenticatorImpl

java.lang.Object
  extended by com.pras.auth.BasicAuthenticatorImpl
All Implemented Interfaces:
Authenticator

public class BasicAuthenticatorImpl
extends java.lang.Object
implements Authenticator

This will provide a basic and LOW Level way of getting Authetication Token for various Google's services. This is a generic approach for core Java. User can add Platform specific Autheticator implementation.

Author:
Prasanta Paul

Constructor Summary
BasicAuthenticatorImpl(Account account)
           
 
Method Summary
 java.lang.String getAuthToken(java.lang.String service)
          Do the authentication and read Auth_Token from Server.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicAuthenticatorImpl

public BasicAuthenticatorImpl(Account account)
Method Detail

getAuthToken

public java.lang.String getAuthToken(java.lang.String service)
Description copied from interface: Authenticator
Do the authentication and read Auth_Token from Server. The implementor class will provide Account (Gmail) and Service details

Specified by:
getAuthToken in interface Authenticator
Parameters:
service - Name of the Service for which Authentication Token is required e.g. "wise" for SpreadSheet
Returns: