Package org.qubership.atp.crypt.api
Interface Decryptor
- All Known Implementing Classes:
DecryptorImpl
public interface Decryptor
-
Method Summary
Modifier and TypeMethodDescriptionDecrypt encryptedData String.Decrypt encryptedData String.Decrypt encrypted parts of String text (if any).decryptIfEncrypted(String encryptedData) Decrypt encryptedData String if it's encrypted.decryptIfEncrypted(String encryptedData, Object key) Decrypt encryptedData String if it's encrypted.booleanisEncrypted(String data) Check if String data parameter is encrypted or not.
-
Method Details
-
decrypt
Decrypt encryptedData String.- Parameters:
encryptedData- String to be decrypted- Returns:
- decrypted String
- Throws:
AtpDecryptException- in case decryption problems.
-
decrypt
Decrypt encryptedData String.- Parameters:
encryptedData- String to be decryptedkey- Key object- Returns:
- decrypted String
- Throws:
AtpDecryptException- in case decryption problems.
-
decryptIfEncrypted
Decrypt encryptedData String if it's encrypted.- Parameters:
encryptedData- String possibly encrypted- Returns:
- decrypted String if encryptedData was really encrypted, otherwise returns original string
- Throws:
AtpDecryptException- in case decryption problems.
-
decryptIfEncrypted
Decrypt encryptedData String if it's encrypted.- Parameters:
encryptedData- String possibly encryptedkey- Key object- Returns:
- decrypted String if encryptedData was really encrypted, otherwise returns original string
- Throws:
AtpDecryptException- in case decryption problems.
-
isEncrypted
Check if String data parameter is encrypted or not.- Parameters:
data- String to check- Returns:
- true if String is encrypted, otherwise false.
-
decryptEncryptedPlacesInString
Decrypt encrypted parts of String text (if any).- Parameters:
text- String possibly containing encrypted parts- Returns:
- String decrypted
- Throws:
AtpDecryptException- in case decryption problems.
-