com.aliyuncs.profile
类 DefaultProfile

java.lang.Object
  继承者 com.aliyuncs.profile.DefaultProfile
所有已实现的接口:
IClientProfile

public class DefaultProfile
extends Object
implements IClientProfile


方法摘要
static void addEndpoint(String endpointName, String regionId, String product, String domain)
           
 Credential getCredential()
           
 List<Endpoint> getEndpoints()
           
 List<Endpoint> getEndpoints(String regionId, String product)
           
 List<Endpoint> getEndpoints(String product, String regionId, String serviceCode, String endpointType)
           
 FormatType getFormat()
           
static DefaultProfile getProfile()
           
static DefaultProfile getProfile(String regionId, ICredentialProvider icredential)
           
static DefaultProfile getProfile(String regionId, IEndpointsProvider provider, String accessKeyId, String secret)
           
static DefaultProfile getProfile(String regionId, IEndpointsProvider provider, String accessKeyId, String secret, String stsToken)
           
static DefaultProfile getProfile(String regionId, Map<String,String> productDomainMap, String accessKeyId, String secret)
           给个性化用户使用的,CustomizedEndpointsParser 通过这个去解析endpoint, 非本地和location;所以一般情况不要使用这个 regionId, eg: cn-hangzhou productDomainMap,eg: Map productDomainMap= new HashMap(); productDomainMap.put("ecs","ecs.aliyuncs.com") accessKeyId secret
static DefaultProfile getProfile(String regionId, Map<String,String> productDomainMap, String accessKeyId, String secret, String stsToken)
           
static DefaultProfile getProfile(String regionId, String accessKeyId, String secret)
           
static DefaultProfile getProfile(String regionId, String accessKeyId, String secret, String stsToken)
           
 String getRegionId()
           
 ISigner getSigner()
           
 void setLocationConfig(String regionId, String product, String endpoint)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

方法详细信息

getSigner

public ISigner getSigner()
指定者:
接口 IClientProfile 中的 getSigner

getRegionId

public String getRegionId()
指定者:
接口 IClientProfile 中的 getRegionId

getFormat

public FormatType getFormat()
指定者:
接口 IClientProfile 中的 getFormat

getCredential

public Credential getCredential()
指定者:
接口 IClientProfile 中的 getCredential

setLocationConfig

public void setLocationConfig(String regionId,
                              String product,
                              String endpoint)
指定者:
接口 IClientProfile 中的 setLocationConfig

getEndpoints

public List<Endpoint> getEndpoints()
                            throws ClientException
指定者:
接口 IClientProfile 中的 getEndpoints
抛出:
ClientException

getEndpoints

public List<Endpoint> getEndpoints(String regionId,
                                   String product)
                            throws ClientException
指定者:
接口 IClientProfile 中的 getEndpoints
抛出:
ClientException

getEndpoints

public List<Endpoint> getEndpoints(String product,
                                   String regionId,
                                   String serviceCode,
                                   String endpointType)
                            throws ClientException
指定者:
接口 IClientProfile 中的 getEndpoints
抛出:
ClientException

getProfile

public static DefaultProfile getProfile()

getProfile

public static DefaultProfile getProfile(String regionId,
                                        ICredentialProvider icredential)

getProfile

public static DefaultProfile getProfile(String regionId,
                                        String accessKeyId,
                                        String secret)

getProfile

public static DefaultProfile getProfile(String regionId,
                                        String accessKeyId,
                                        String secret,
                                        String stsToken)

getProfile

public static DefaultProfile getProfile(String regionId,
                                        Map<String,String> productDomainMap,
                                        String accessKeyId,
                                        String secret)
 给个性化用户使用的,CustomizedEndpointsParser 通过这个去解析endpoint,
 非本地和location;所以一般情况不要使用这个 regionId,
 
eg: cn-hangzhou productDomainMap,eg: Map productDomainMap= new HashMap(); productDomainMap.put("ecs","ecs.aliyuncs.com") accessKeyId secret


getProfile

public static DefaultProfile getProfile(String regionId,
                                        Map<String,String> productDomainMap,
                                        String accessKeyId,
                                        String secret,
                                        String stsToken)

getProfile

public static DefaultProfile getProfile(String regionId,
                                        IEndpointsProvider provider,
                                        String accessKeyId,
                                        String secret)

getProfile

public static DefaultProfile getProfile(String regionId,
                                        IEndpointsProvider provider,
                                        String accessKeyId,
                                        String secret,
                                        String stsToken)

addEndpoint

public static void addEndpoint(String endpointName,
                               String regionId,
                               String product,
                               String domain)
                        throws ClientException
抛出:
ClientException


Copyright © 2017. All Rights Reserved.