public class StsInfo
extends java.lang.Object
Encapsulates temporary security credentials and supported media formats.
VidSts| Constructor and Description |
|---|
StsInfo() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAccessKeyId()
Retrieves the AccessKey ID.
|
java.lang.String |
getAccessKeySecret()
Retrieves the AccessKey Secret.
|
java.util.List<MediaFormat> |
getFormats()
Retrieves the list of media formats returned by server.
|
java.lang.String |
getRegion()
Retrieves the request region.
|
java.lang.String |
getSecurityToken()
Retrieves the security token (STS Token).
|
void |
setAccessKeyId(java.lang.String accessKeyId)
Sets the AccessKey ID.
|
void |
setAccessKeySecret(java.lang.String accessKeySecret)
Sets the AccessKey Secret.
|
void |
setFormats(java.util.List<MediaFormat> formats)
Sets the list of supported media formats.
|
void |
setRegion(java.lang.String region)
Sets the request region.
|
void |
setSecurityToken(java.lang.String securityToken)
Sets the security token (STS Token).
|
public void setAccessKeyId(java.lang.String accessKeyId)
Subsequent calls to getAccessKeyId() will return the same value.
Used for authentication with Alibaba Cloud services.
accessKeyId - AccessKey IDgetAccessKeyId()public void setAccessKeySecret(java.lang.String accessKeySecret)
Subsequent calls to getAccessKeySecret() will return the same value.
Used with AccessKey ID for authentication.
accessKeySecret - AccessKey SecretgetAccessKeySecret()public void setSecurityToken(java.lang.String securityToken)
Subsequent calls to getSecurityToken() will return the same value.
Used for temporary security credential authentication.
securityToken - Security tokengetSecurityToken()public void setRegion(java.lang.String region)
Subsequent calls to getRegion() will return the same value.
The region identifier (e.g., "cn-shanghai") specifies the service region.
region - Region identifier (e.g., "cn-shanghai")getRegion()public java.lang.String getAccessKeyId()
The return value is determined by the most recent call to setAccessKeyId(String):
null if never callednullsetAccessKeyId(String)public java.lang.String getAccessKeySecret()
The return value is determined by the most recent call to setAccessKeySecret(String):
null if never callednullsetAccessKeySecret(String)public java.lang.String getSecurityToken()
The return value is determined by the most recent call to setSecurityToken(String):
null if never callednullsetSecurityToken(String)public java.lang.String getRegion()
The return value is determined by the most recent call to setRegion(String):
null if never callednullsetRegion(String)public java.util.List<MediaFormat> getFormats()
The return value is determined by the most recent call to setFormats(List):
null if never callednullsetFormats(List),
MediaFormatpublic void setFormats(java.util.List<MediaFormat> formats)
Subsequent calls to getFormats() will return the same list.
Not setting indicates using default formats (mp4, m3u8, mp3, flv).
formats - List of media formats (e.g., Arrays.asList(MediaFormat.MP4, MediaFormat.HLS)), may be nullgetFormats(),
MediaFormat