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

com.netease.stream.auth.StaticCredentialsProvider Maven / Gradle / Ivy

package com.netease.stream.auth;


/**
 * Simple implementation of CredentialsProvider that just wraps static Credentials.
 */
public class StaticCredentialsProvider implements CredentialsProvider {

    private final Credentials credentials;

    public StaticCredentialsProvider(Credentials credentials) {
        this.credentials = credentials;
    }

    public Credentials getCredentials() {
        return credentials;
    }

    public void refresh() {}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy