public class RangerQcloudObjectStorageClientImpl extends Object implements org.apache.hadoop.fs.cosn.ranger.client.RangerQcloudObjectStorageClient
| Modifier and Type | Field and Description |
|---|---|
static RangerQcloudObjectStorageClientImpl |
INSTANCE |
| Constructor and Description |
|---|
RangerQcloudObjectStorageClientImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(org.apache.hadoop.security.token.Token<?> token,
org.apache.hadoop.conf.Configuration configuration)
cancel token
|
org.apache.hadoop.fs.cosn.ranger.security.authorization.PermissionResponse |
checkPermission(org.apache.hadoop.fs.cosn.ranger.security.authorization.PermissionRequest permissionRequest)
check permission
|
void |
close() |
String |
getCanonicalServiceName() |
org.apache.hadoop.security.token.Token<DelegationTokenIdentifier> |
getDelegationToken(String renwer)
get delegation token
|
org.apache.hadoop.fs.cosn.ranger.security.authorization.RangerAuthPolicyResponse |
getRangerAuthPolicy()
get range auth policy
|
org.apache.hadoop.fs.cosn.ranger.security.sts.GetSTSResponse |
getSTS(String bucketRegion,
String bucketName)
get sts for cos
|
String |
getUserCredentials()
get user credentials in real time
|
void |
init(org.apache.hadoop.conf.Configuration conf) |
long |
renew(org.apache.hadoop.security.token.Token<?> token,
org.apache.hadoop.conf.Configuration configuration)
renew token
|
public static final RangerQcloudObjectStorageClientImpl INSTANCE
public String getCanonicalServiceName()
getCanonicalServiceName in interface org.apache.hadoop.fs.cosn.ranger.client.RangerQcloudObjectStorageClientpublic void init(org.apache.hadoop.conf.Configuration conf)
throws IOException
init in interface org.apache.hadoop.fs.cosn.ranger.client.RangerQcloudObjectStorageClientIOExceptionpublic org.apache.hadoop.security.token.Token<DelegationTokenIdentifier> getDelegationToken(String renwer) throws IOException
getDelegationToken in interface org.apache.hadoop.fs.cosn.ranger.client.RangerQcloudObjectStorageClientrenwer - IOExceptionpublic long renew(org.apache.hadoop.security.token.Token<?> token,
org.apache.hadoop.conf.Configuration configuration)
throws IOException,
InterruptedException
renew in interface org.apache.hadoop.fs.cosn.ranger.client.RangerQcloudObjectStorageClienttoken - token infoconfiguration - hadoop configurationIOExceptionInterruptedExceptionpublic void cancel(org.apache.hadoop.security.token.Token<?> token,
org.apache.hadoop.conf.Configuration configuration)
throws IOException,
InterruptedException
cancel in interface org.apache.hadoop.fs.cosn.ranger.client.RangerQcloudObjectStorageClienttoken - configuration - IOExceptionInterruptedExceptionpublic org.apache.hadoop.fs.cosn.ranger.security.authorization.PermissionResponse checkPermission(org.apache.hadoop.fs.cosn.ranger.security.authorization.PermissionRequest permissionRequest)
throws IOException
checkPermission in interface org.apache.hadoop.fs.cosn.ranger.client.RangerQcloudObjectStorageClientpermissionRequest - permission infoIOExceptionpublic org.apache.hadoop.fs.cosn.ranger.security.sts.GetSTSResponse getSTS(String bucketRegion, String bucketName) throws IOException
getSTS in interface org.apache.hadoop.fs.cosn.ranger.client.RangerQcloudObjectStorageClientbucketRegion - bucketName - IOExceptionpublic org.apache.hadoop.fs.cosn.ranger.security.authorization.RangerAuthPolicyResponse getRangerAuthPolicy()
throws IOException
getRangerAuthPolicy in interface org.apache.hadoop.fs.cosn.ranger.client.RangerQcloudObjectStorageClientIOExceptionpublic void close()
close in interface org.apache.hadoop.fs.cosn.ranger.client.RangerQcloudObjectStorageClientpublic String getUserCredentials() throws IOException
IOExceptionCopyright © 2022. All rights reserved.