类 EcsSecurityUtils
java.lang.Object
cn.warpin.thirdPart.huawei.obs.obs.services.internal.security.EcsSecurityUtils
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static StringReturns the host address of the ECS Instance Metadata Service.private static StringgetResourceWithDetail(String endpoint) Get resource and return contents from metadata service with the specify path.static StringReturns the temporary security credentials (access, secret, securitytoken, and expires_at) associated with the IAM roles on the instance.
-
字段详细资料
-
OPENSTACK_METADATA_ROOT
Default root url for the openstack metadata apis.- 另请参阅:
-
ECS_METADATA_SERVICE_URL
Default endpoint for the ECS Instance Metadata Service. -
EC2_METADATA_SERVICE_OVERRIDE_URL
- 另请参阅:
-
HTTP_CONNECT_TIMEOUT_VALUE
private static final long HTTP_CONNECT_TIMEOUT_VALUE- 另请参阅:
-
httpClient
private static okhttp3.OkHttpClient httpClient
-
-
构造器详细资料
-
EcsSecurityUtils
public EcsSecurityUtils()
-
-
方法详细资料
-
getSecurityKeyInfoWithDetail
Returns the temporary security credentials (access, secret, securitytoken, and expires_at) associated with the IAM roles on the instance.- 抛出:
IOException
-
getEndpointForECSMetadataService
Returns the host address of the ECS Instance Metadata Service. -
getResourceWithDetail
Get resource and return contents from metadata service with the specify path.- 抛出:
IOException
-