Uses of Enum Class
eu.righettod.SensitiveInformationType
-
Uses of SensitiveInformationType in eu.righettod
Subclasses with type arguments of type SensitiveInformationType in eu.righettodModifier and TypeClassDescriptionenumEnumeration used by the methodSecurityUtils.extractAllSensitiveInformation()to identify types of information found.Methods in eu.righettod that return SensitiveInformationTypeModifier and TypeMethodDescriptionstatic SensitiveInformationTypeReturns the enum constant of this class with the specified name.static SensitiveInformationType[]SensitiveInformationType.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in eu.righettod that return types with arguments of type SensitiveInformationTypeModifier and TypeMethodDescriptionstatic Map<SensitiveInformationType, Set<String>> SecurityUtils.extractAllSensitiveInformation(String content) Extract all sensitive information from a string provided.
This can be used to identify any sensitive information into a message expected to be written in a log and then replace every sensitive values by an obfuscated ones.
For the luxembourg national identification number, this method focus on detecting identifiers for a physical entity (people) and not a moral one (company).
I delegated the validation of the IBAN to a dedicated library (iban4j) to not "reinvent the wheel" and then introduce buggy validation myself.