aboutsummaryrefslogtreecommitdiff
path: root/libs/networking/WordPressNetworking/src/main/java/org/wordpress/android/networking/Authenticator.java
blob: cf7bd78bbed6337185d4280e4e704e5ac7bf0fde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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);
}