
com.truelayer.java.auth.IAuthenticationHandler Maven / Gradle / Ivy
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 - 2025 Weber Informatics LLC | Privacy Policy