Package org.qubership.atp.crypt
Class CryptoTools
java.lang.Object
org.qubership.atp.crypt.CryptoTools
-
Method Summary
Modifier and TypeMethodDescriptionstatic String[]getEncryptedData(String data) Finds encrypted text from data.static StringGet encrypted mask.static StringGet encrypted data regexp.static StringmaskEncryptedData(String text) Mask text if encrypted with Constants.ENCRYPTED_MASK mask.static StringmaskEncryptedData(String text, String mask) Mask text if encrypted with the mask.
-
Method Details
-
maskEncryptedData
Mask text if encrypted with the mask.- Parameters:
text- - data to maskmask- - to mask encrypted data with- Returns:
- - encrypted text
-
maskEncryptedData
Mask text if encrypted with Constants.ENCRYPTED_MASK mask.- Parameters:
text- - data to mask- Returns:
- - encrypted text
-
getEncryptedMask
Get encrypted mask.- Returns:
- encrypted mask String.
-
getTemplateRegexp
Get encrypted data regexp.- Returns:
- template regexp.
-
getEncryptedData
Finds encrypted text from data.- Parameters:
data- - data to find encrypted text in.- Returns:
- encrypted text if exists
-