public class LocalIdentityTransformer extends IdentityTransformer
IdentityTransformer that translates the AAD to Local
identity using IdentityHandler.
TextFileBasedIdentityHandler is a IdentityHandler implements
translation operation which returns identity mapped to AAD identity.| Constructor and Description |
|---|
LocalIdentityTransformer(org.apache.hadoop.conf.Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
String |
transformIdentityForGetRequest(String originalIdentity,
boolean isUserName,
String localIdentity)
Perform identity transformation for the Get request results.
|
transformAclEntriesForGetRequest, transformAclEntriesForSetRequest, transformUserOrGroupForSetRequestpublic LocalIdentityTransformer(org.apache.hadoop.conf.Configuration configuration)
throws IOException
IOExceptionpublic String transformIdentityForGetRequest(String originalIdentity, boolean isUserName, String localIdentity) throws IOException
transformIdentityForGetRequest in interface IdentityTransformerInterfacetransformIdentityForGetRequest in class IdentityTransformeroriginalIdentity - the original user or group in the get request results: FileStatus, AclStatus.isUserName - indicate whether the input originalIdentity is an owner name or owning group name.localIdentity - the local user or group, should be parsed from UserGroupInformation.IOExceptionCopyright © 2008–2024 Apache Software Foundation. All rights reserved.