All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.truelayer.java.auth.IAuthenticationHandler Maven / Gradle / Ivy

The newest version!
package com.truelayer.java.auth;

import com.truelayer.java.auth.entities.AccessToken;
import com.truelayer.java.http.entities.ApiResponse;
import java.util.List;
import java.util.concurrent.CompletableFuture;

/**
 * Exposes all the authentication related capabilities of the library.
 *
 * @see Authentication API reference
 */
public interface IAuthenticationHandler {

    /**
     * Gets an OAuth access token for the given scope(s).
     *
     * @param scopes a list of scopes. Might contain a single element.
     * @return the response of the Generate Access token operation
     * @see Generate Access token API reference
     */
    CompletableFuture> getOauthToken(List scopes);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy