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

com.datastax.stargate.sdk.core.ApiTokenProviderFixed Maven / Gradle / Ivy

There is a newer version: 2.3.7
Show newest version
package com.datastax.stargate.sdk.core;

/**
 * Static token, never expires..
 *
 * @author Cedrick LUNVEN (@clunven)
 */
public class ApiTokenProviderFixed implements ApiTokenProvider {

    /** Reference to token. */
    private String token;
    
    /**
     * Constructor with all parameters.
     *
     * @param token
     *      static token to be used
     */
    public ApiTokenProviderFixed(String token) {
        this.token = token;
    }
    
    /** {@inheritDoc} */
    @Override
    public String getToken() {
        return token;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy