public class IdentityMappingUtil extends Object
Modifier and Type | Field and Description |
---|---|
private static Pattern |
backReferencePattern |
private static org.slf4j.Logger |
LOGGER |
Constructor and Description |
---|
IdentityMappingUtil() |
Modifier and Type | Method and Description |
---|---|
private static String |
escapeLiteralBackReferences(String unescaped,
int numCapturingGroups) |
static List<IdentityMapping> |
getGroupMappings(NiFiProperties properties)
Buils the group mappings from NiFiProperties.
|
static List<IdentityMapping> |
getIdentityMappings(NiFiProperties properties)
Builds the identity mappings from NiFiProperties.
|
private static List<IdentityMapping> |
getMappings(NiFiProperties properties,
String patternPrefix,
String valuePrefix,
String transformPrefix,
Supplier<String> getSubject) |
static String |
mapIdentity(String identity,
List<IdentityMapping> mappings)
Checks the given identity against each provided mapping and performs the mapping using the first one that matches.
|
private static final org.slf4j.Logger LOGGER
private static final Pattern backReferencePattern
public static List<IdentityMapping> getIdentityMappings(NiFiProperties properties)
properties
- the NiFiProperties instancepublic static List<IdentityMapping> getGroupMappings(NiFiProperties properties)
properties
- the NiFiProperties instanceprivate static List<IdentityMapping> getMappings(NiFiProperties properties, String patternPrefix, String valuePrefix, String transformPrefix, Supplier<String> getSubject)
public static String mapIdentity(String identity, List<IdentityMapping> mappings)
identity
- the identity to mapmappings
- the mappingsCopyright © 2021 Apache NiFi Project. All rights reserved.