public final class ComponentChecker
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
clearReferenceCache() |
static java.util.Set<AlgorithmInstanceReference> |
getAllAlgorithmInstanceRefs(MaskingComponent component)
Return as list of all AlgorithmInstanceReference objects referenced by fields in the
MaskingComponent object.
|
static java.util.Set<FileReference> |
getAllFileRefs(MaskingComponent component)
Return as list of all FileReference objects stored in fields of the MaskingComponent object.
|
static java.util.Set<JdbcReference> |
getAllJdbcRefs(MaskingComponent component)
Return as list of all JdbcReference objects stored in fields of the MaskingComponent object.
|
static java.util.Set<KeyReference> |
getAllKeyRefs(MaskingComponent component)
Return as list of all KeyReference objects stored in fields of the MaskingComponent object.
|
static java.util.Set<MappingSetReference> |
getAllMappingSetRefs(MaskingComponent component)
Return as list of all MappingSetReference objects stored in fields of the MaskingComponent
object.
|
static MaskingAlgorithm.MaskingType |
getMaskingType(MaskingComponent obj)
Determines the data type supported by the MaskingAlgorithm interface, and validates that the
correct, matching ValueMetadata type parameter was chosen.
|
static void |
validateMultiColumnAlgorithm(MaskingAlgorithm<GenericDataRow> algorithm) |
static void |
validateMultiColumnAssignment(MaskingAlgorithm<GenericDataRow> algorithm,
java.util.Collection<java.lang.String> actualFields)
Validate the set of logical fields for a multi-column algorithm masking assignment.
|
static void |
validateMultiColumnAssignment(java.lang.String algorithmName,
java.util.Collection<AlgorithmLogicalField> logicalFields,
java.util.Collection<java.lang.String> actualFields)
Validate the set of logical fields for a multi-column algorithm masking assignment.
|
public static void clearReferenceCache()
public static MaskingAlgorithm.MaskingType getMaskingType(MaskingComponent obj)
obj
- The object to be evaluatedjava.lang.IllegalArgumentException
- When the object implements an invalid MaskingAlgorithm typepublic static java.util.Set<AlgorithmInstanceReference> getAllAlgorithmInstanceRefs(MaskingComponent component)
component
- The component to be checked for algorithm instance referencespublic static java.util.Set<FileReference> getAllFileRefs(MaskingComponent component)
component
- The component to be checked for file referencespublic static java.util.Set<KeyReference> getAllKeyRefs(MaskingComponent component)
component
- The component to be checked for key referencespublic static java.util.Set<JdbcReference> getAllJdbcRefs(MaskingComponent component)
component
- The component to be checked for JDBC referencesJdbcReference
objects.public static java.util.Set<MappingSetReference> getAllMappingSetRefs(MaskingComponent component)
component
- The component to be checked for mappingSet referencespublic static void validateMultiColumnAssignment(MaskingAlgorithm<GenericDataRow> algorithm, java.util.Collection<java.lang.String> actualFields)
algorithm
- The multi-column algorithm to checkactualFields
- The set of logical fields that have been assigned in the masking
assignmentpublic static void validateMultiColumnAssignment(java.lang.String algorithmName, java.util.Collection<AlgorithmLogicalField> logicalFields, java.util.Collection<java.lang.String> actualFields)
algorithmName
- The name of the algorithmlogicalFields
- The set of logical fields expected by the algorithmactualFields
- The set of logical fields that have been assigned in the masking
assignmentInvalidMaskingAssignmentException
- When the multi-column assignment is invalidpublic static void validateMultiColumnAlgorithm(MaskingAlgorithm<GenericDataRow> algorithm)