com.google.api.ads.dfa.lib.auth
Class LoginTokens
java.lang.Object
com.google.api.ads.dfa.lib.auth.LoginTokens
public class LoginTokens
- extends Object
A utility class that can authenticate against the DFA API and return
authentication tokens.
- Author:
- Joseph DiLallo
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoginTokens
@Inject
public LoginTokens(LoginTokensHelper loginTokensHelper)
- Constructor.
- Parameters:
loginTokensHelper - the login ticket provider helper
generateToken
public String generateToken(String stubPackage,
DfaSession session)
throws LoginTokenException
- Generates a new authentication token using reflection.
- Parameters:
stubPackage - the package where all generated stubs are locatedsession - the DFA session
- Returns:
- an authentication token
- Throws:
LoginTokenException - thrown if generating a token fails
Copyright © 2012. All Rights Reserved.