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.17.0
Show newest version

package io.vrap.rmf.base.client.oauth2;

import java.util.concurrent.CompletableFuture;

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

/**
 * Token supplier using a specified token
 */
public class StaticTokenSupplier implements TokenSupplier {

    private final AuthenticationToken token;

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy