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

com.aliyun.openservices.log.common.auth.StaticCredentialsProvider Maven / Gradle / Ivy

There is a newer version: 0.6.115
Show newest version
package com.aliyun.openservices.log.common.auth;

public class StaticCredentialsProvider implements CredentialsProvider {

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

    @Override
    public Credentials getCredentials() {
        return credentials;
    }

    private final Credentials credentials;

    public void setAccessKeyId(String accessKeyId) {
        credentials.setAccessKeyId(accessKeyId);
    }

    public void setAccessKeySecret(String accessKeySecret) {
        credentials.setAccessKeySecret(accessKeySecret);
    }

    public void setSecurityToken(String securityToken) {
        credentials.setSecurityToken(securityToken);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy