blob: cf7bd78bbed6337185d4280e4e704e5ac7bf0fde [file] [log] [blame]
package org.wordpress.android.networking;
/**
* Interface that provides a method that should perform the necessary task to make sure
* the provided AuthenticatorRequest will be authenticated.
*
* The Authenticator must call AuthenticatorRequest.send() when it has completed its operations. For
* convenience the AuthenticatorRequest class provides AuthenticatorRequest.setAccessToken so the Authenticator can
* easily update the access token.
*/
public interface Authenticator {
void authenticate(final AuthenticatorRequest authenticatorRequest);
}