|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.baidubce.auth.DefaultBceCredentials
public class DefaultBceCredentials
Default implementation of the Credentials interface that allows callers to pass in the BCE access key and secret access in the constructor.
Constructor Summary | |
---|---|
DefaultBceCredentials(String accessKeyId,
String secretKey)
Constructs a new Credentials object, with the specified access key id and secret key. |
Method Summary | |
---|---|
String |
getAccessKeyId()
Returns the BCE access key ID for this credentials object. |
String |
getSecretKey()
Returns the BCE secret access key for this credentials object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultBceCredentials(String accessKeyId, String secretKey)
accessKeyId
- the BCE access key id.secretKey
- the BCE secret access key.
IllegalArgumentException
- The accessKeyId, secretKey should not be null or empty.Method Detail |
---|
public String getAccessKeyId()
BceCredentials
getAccessKeyId
in interface BceCredentials
BceCredentials.getAccessKeyId()
public String getSecretKey()
BceCredentials
getSecretKey
in interface BceCredentials
BceCredentials.getSecretKey()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |