public class OSSStsTokenCredentialProvider extends java.lang.Object implements OSSCredentialProvider
构造器和说明 |
---|
OSSStsTokenCredentialProvider(OSSFederationToken token) |
OSSStsTokenCredentialProvider(java.lang.String accessKeyId,
java.lang.String secretKeyId,
java.lang.String securityToken)
Creates an instance of StsTokenCredentialProvider with the STS token got from RAM.
|
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getAccessKeyId() |
OSSFederationToken |
getFederationToken()
get OSSFederationToken instance
|
java.lang.String |
getSecretKeyId() |
java.lang.String |
getSecurityToken() |
void |
setAccessKeyId(java.lang.String accessKeyId) |
void |
setSecretKeyId(java.lang.String secretKeyId) |
void |
setSecurityToken(java.lang.String securityToken) |
public OSSStsTokenCredentialProvider(java.lang.String accessKeyId, java.lang.String secretKeyId, java.lang.String securityToken)
accessKeyId
- secretKeyId
- securityToken
- public OSSStsTokenCredentialProvider(OSSFederationToken token)
public java.lang.String getAccessKeyId()
public void setAccessKeyId(java.lang.String accessKeyId)
public java.lang.String getSecretKeyId()
public void setSecretKeyId(java.lang.String secretKeyId)
public java.lang.String getSecurityToken()
public void setSecurityToken(java.lang.String securityToken)
public OSSFederationToken getFederationToken()
OSSCredentialProvider
getFederationToken
在接口中 OSSCredentialProvider