com.baidubce.auth
Class DefaultBceSessionCredentials
java.lang.Object
com.baidubce.auth.DefaultBceCredentials
com.baidubce.auth.DefaultBceSessionCredentials
- All Implemented Interfaces:
- 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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
- Parameters:
accessKeyId - the BCE access key id.secretKey - the BCE secret access key.sessionToken - the BCE session token.
- Throws:
IllegalArgumentException - The accessKeyId, secretKey and sessionToken should not be null or empty.
getSessionToken
public String getSessionToken()
- Description copied from interface:
BceSessionCredentials
- Returns the session token for this credentials object.
- Specified by:
getSessionToken in interface BceSessionCredentials
- Returns:
- the session token for this credentials object.
- See Also:
BceSessionCredentials.getSessionToken()
Copyright © 2016. All rights reserved.