public class ManagementClient extends AuthingBaseClient
| 限定符和类型 | 字段和说明 |
|---|---|
protected String |
accessToken
根据用户池 id 和 secret 获取到的 token, 做本地维护,调用管理类接口时,自动续期
|
protected Long |
accessTokenExpiresAt
token 对应的过期时间,单位:ms
|
protected static String |
MGMT_TOKEN_METHOD |
endpoint, HTTP_CLIENT, log, PATH_PREFIX, userPoolId, userPoolSecret, VERSION| 构造器和说明 |
|---|
ManagementClient()
构造方式一
|
ManagementClient(String endpoint)
构造方式二
|
ManagementClient(String endpoint,
org.apache.http.impl.client.CloseableHttpClient client)
构造方式二
|
ManagementClient(String endpoint,
String userPoolId,
String userPoolSecret)
构造方式三
|
| 限定符和类型 | 方法和说明 |
|---|---|
<R> R |
execute(ManagementRequest request,
Class<R> clazz)
执行 http 请求
|
buildExt, execute, execute, getAddedHeaders, getEndpoint, getUserPoolId, getUserPoolSecret, setEndpoint, setPublicKey, setUserPoolId, setUserPoolSecretprotected String accessToken
protected Long accessTokenExpiresAt
public ManagementClient()
public ManagementClient(String endpoint)
endpoint - 调用地址 https://ip:portpublic ManagementClient(String endpoint, org.apache.http.impl.client.CloseableHttpClient client)
endpoint - 调用地址 https://ip:portclient - clientpublic <R> R execute(ManagementRequest request, Class<R> clazz)
R - 响应对象的类型request - 请求对象clazz - 响应对象的类型Copyright © 2021. All rights reserved.