public class TextFileBasedIdentityHandler extends Object implements IdentityHandler
TextFileBasedIdentityHandler is a IdentityHandler implements
translation operation which returns identity mapped to AAD identity by
loading the mapping file from the configured location. Location of the
mapping file should be configured in core-site.xml.
User identity file should be delimited by colon in below format.
# OBJ_ID:USER_NAME:USER_ID:GROUP_ID:SPI_NAME:APP_IDExample:
a2b27aec-77bd-46dd-8c8c-39611a333331:user1:11000:21000:spi-user1:abcf86e9-5a5b-49e2-a253-f5c9e2afd4ecGroup identity file should be delimited by colon in below format.
# OBJ_ID:GROUP_NAME:GROUP_ID:SGP_NAMEExample:
1d23024d-957c-4456-aac1-a57f9e2de914:group1:21000:sgp-group1
| Constructor and Description |
|---|
TextFileBasedIdentityHandler(String userMappingFilePath,
String groupMappingFilePath) |
| Modifier and Type | Method and Description |
|---|---|
String |
lookupForLocalGroupIdentity(String originalIdentity)
Perform lookup from Security Group's Object ID to Local Security Group name.
|
String |
lookupForLocalUserIdentity(String originalIdentity)
Perform lookup from Service Principal's Object ID to Local Username.
|
public String lookupForLocalUserIdentity(String originalIdentity) throws IOException
lookupForLocalUserIdentity in interface IdentityHandleroriginalIdentity - AAD object ID.IOExceptionpublic String lookupForLocalGroupIdentity(String originalIdentity) throws IOException
lookupForLocalGroupIdentity in interface IdentityHandleroriginalIdentity - AAD object ID.IOExceptionCopyright © 2008–2021 Apache Software Foundation. All rights reserved.