public class AuthUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ACCESS_KEY_ENV_VAR
Environment variable name for the tablestore access key ID
|
static String |
ACCESS_KEY_SYSTEM_PROPERTY
System property name for the TableStore access key ID
|
static int |
DEFAULT_ECS_SESSION_TOKEN_DURATION_SECONDS
AK/SK expiration time obtained from ECS Metadata Service, default 6 hours
|
static int |
DEFAULT_EXPIRED_DURATION_SECONDS
Default expiration time
|
static double |
DEFAULT_EXPIRED_FACTOR
Default expiration time adjustment factor
|
static int |
DEFAULT_HTTP_SOCKET_TIMEOUT_IN_MILLISECONDS
Connection timeout when getting AK/SK, the default 5 seconds
|
static int |
DEFAULT_STS_SESSION_TOKEN_DURATION_SECONDS
AK/SK expire time obtained from STS, default 1 hour
|
static int |
MAX_ECS_METADATA_FETCH_RETRY_TIMES
The maximum number of retries when getting AK/SK from ECS
|
static String |
SECRET_KEY_ENV_VAR
Environment variable name for the tablestore secret key
|
static String |
SECRET_KEY_SYSTEM_PROPERTY
System property name for the TableStore secret key
|
static String |
SESSION_TOKEN_ENV_VAR
Environment variable name for the tablestore session token
|
static String |
SESSION_TOKEN_SYSTEM_PROPERTY
System property name for the TableStore session token
|
| Constructor and Description |
|---|
AuthUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkAccessKeyIdFormat(String accessKeyId)
Check if accessKeyId is in valid format.
|
public static final int DEFAULT_EXPIRED_DURATION_SECONDS
public static final double DEFAULT_EXPIRED_FACTOR
public static final int MAX_ECS_METADATA_FETCH_RETRY_TIMES
public static final int DEFAULT_ECS_SESSION_TOKEN_DURATION_SECONDS
public static final int DEFAULT_STS_SESSION_TOKEN_DURATION_SECONDS
public static final int DEFAULT_HTTP_SOCKET_TIMEOUT_IN_MILLISECONDS
public static final String ACCESS_KEY_ENV_VAR
public static final String SECRET_KEY_ENV_VAR
public static final String SESSION_TOKEN_ENV_VAR
public static final String ACCESS_KEY_SYSTEM_PROPERTY
public static final String SECRET_KEY_SYSTEM_PROPERTY
public static final String SESSION_TOKEN_SYSTEM_PROPERTY
public static boolean checkAccessKeyIdFormat(String accessKeyId)
accessKeyId - value to checkCopyright © 2024. All Rights Reserved.