类 DefaultBceCredentials
- java.lang.Object
-
- com.baidubce.auth.DefaultBceCredentials
-
- 所有已实现的接口:
BceCredentials
- 直接已知子类:
DefaultBceSessionCredentials
public class DefaultBceCredentials extends Object implements BceCredentials
Default implementation of the Credentials interface that allows callers to pass in the BCE access key and secret access in the constructor.
-
-
构造器概要
构造器 构造器 说明 DefaultBceCredentials(String accessKeyId, String secretKey)Constructs a new Credentials object, with the specified access key id and secret key.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetAccessKeyId()Returns the BCE access key ID for this credentials object.StringgetSecretKey()Returns the BCE secret access key for this credentials object.
-
-
-
构造器详细资料
-
DefaultBceCredentials
public DefaultBceCredentials(String accessKeyId, String secretKey)
Constructs a new Credentials object, with the specified access key id and secret key.- 参数:
accessKeyId- the BCE access key id.secretKey- the BCE secret access key.- 抛出:
IllegalArgumentException- The accessKeyId, secretKey should not be null or empty.
-
-
方法详细资料
-
getAccessKeyId
public String getAccessKeyId()
从接口复制的说明:BceCredentialsReturns the BCE access key ID for this credentials object.- 指定者:
getAccessKeyId在接口中BceCredentials- 返回:
- the BCE access key ID for this credentials object.
- 另请参阅:
BceCredentials.getAccessKeyId()
-
getSecretKey
public String getSecretKey()
从接口复制的说明:BceCredentialsReturns the BCE secret access key for this credentials object.- 指定者:
getSecretKey在接口中BceCredentials- 返回:
- the BCE secret access key for this credentials object.
- 另请参阅:
BceCredentials.getSecretKey()
-
-