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

io.vrap.rmf.base.client.oauth2.StaticTokenSupplier Maven / Gradle / Ivy

There is a newer version: 17.15.1
Show newest version
package io.vrap.rmf.base.client.oauth2;

import io.vrap.rmf.base.client.AuthenticationToken;

import java.util.concurrent.CompletableFuture;

public class StaticTokenSupplier implements TokenSupplier {

    private final AuthenticationToken token;

    public StaticTokenSupplier(AuthenticationToken token) {
        this.token = token;
    }

    @Override
    public CompletableFuture getToken() {
        return CompletableFuture.completedFuture(this.token);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy