global.maplink.credentials.MapLinkCredentials Maven / Gradle / Ivy
The newest version!
package global.maplink.credentials;
import global.maplink.token.MapLinkToken;
import global.maplink.token.TokenProvider;
import java.util.concurrent.CompletableFuture;
public interface MapLinkCredentials {
CompletableFuture fetchToken(TokenProvider provider);
static MapLinkCredentials loadDefault() {
return new EnvMapLinkCredentials();
}
static MapLinkCredentials ofKey(String clientId, String password) {
return new ProvidedMapLinkCredentials(clientId, password);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy