com.google.api.ads.dfa.lib.testing.mocks.v1_12
Class LoginSoapBindingStub
java.lang.Object
com.google.api.ads.dfa.lib.testing.mocks.v1_12.LoginSoapBindingStub
- All Implemented Interfaces:
- LoginRemote
public class LoginSoapBindingStub
- extends Object
- implements LoginRemote
Mock login remote. Named similarly enough to be mistaken for the DFA API's
login service. Used to test DfaServiceClient and
LoginTokens.
- Author:
- Joseph DiLallo
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
USER_PROFILE
public static final UserProfile USER_PROFILE
LoginSoapBindingStub
public LoginSoapBindingStub()
authenticate
public UserProfile authenticate(String username,
String password)
- Mock of DFA's login service authenticate operation.
- Specified by:
authenticate in interface LoginRemote
- Parameters:
username - DFA user profile namepassword - DFA user profile password
- Returns:
- a user profile
impersonateUser
public UserProfile impersonateUser(String username,
String password,
String targetUsername)
- Mock of DFA's login service impersonateUser operation.
- Specified by:
impersonateUser in interface LoginRemote
- Parameters:
username - DFA superuser profile namepassword - DFA superuser profile passwordtargetUsername - username to impersonate
- Returns:
- a user profile
impersonateNetwork
public UserProfile impersonateNetwork(String username,
String password,
long networkId)
- Mock of DFA's login service impersonateNetwork operation.
- Specified by:
impersonateNetwork in interface LoginRemote
- Parameters:
username - DFA superuser profile namepassword - DFA superuser profile tokennetworkId - network to impersonate
- Returns:
- a user profile
Copyright © 2012. All Rights Reserved.