com.aliyuncs.auth.LegacyCredentials Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aliyun-java-sdk-core Show documentation
Show all versions of aliyun-java-sdk-core Show documentation
Aliyun Open API SDK for Java
Copyright (C) Alibaba Cloud Computing
All rights reserved.
版权所有 (C)阿里云计算有限公司
http://www.aliyun.com
package com.aliyuncs.auth;
@SuppressWarnings("deprecation")
public class LegacyCredentials implements AlibabaCloudCredentials {
private final Credential legacyCredential;
public LegacyCredentials(Credential legacyCredential) {
this.legacyCredential = legacyCredential;
}
@Override
public String getAccessKeyId() {
return legacyCredential.getAccessKeyId();
}
@Override
public String getAccessKeySecret() {
return legacyCredential.getAccessSecret();
}
}