org.entur.gbfs.authentication.RequestAuthenticator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gbfs-loader-java Show documentation
Show all versions of gbfs-loader-java Show documentation
Manage loading of GBFS feeds
package org.entur.gbfs.authentication;
import java.util.Map;
/**
* A RequestAuthenticator can be passed to the GbfsLoader to add authentication
* details to http headers. A dummy implementation is used by default, which adds no
* authentication.
*
* Implementations provided:
* @see Oauth2ClientCredentialsGrantRequestAuthenticator
* @see BearerTokenRequestAuthenticator
* @see HttpHeadersRequestAuthenticator
*
* You may create your own implementation for custom authentication schemes
*/
public interface RequestAuthenticator {
/**
* This method is called before each request is made
*
* @param httpHeaders The configured http headers used by the loader
*/
void authenticateRequest(Map httpHeaders)
throws RequestAuthenticationException;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy