com.aliyun.openservices.log.common.auth.StaticCredentialsProvider Maven / Gradle / Ivy
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