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