Class DecryptFileResult
Object
DecryptFileResult
DecryptFileResult
Value object returned by AnkaSecureSdk#decryptFile
. It encapsulates:
- Plaintext payload – Base64‑encoded representation of the decrypted file.
- Key metadata – the key requested by the caller and the key actually used once server‑side rotation logic is applied.
- Algorithm negotiated – exact hybrid algorithm selected
by the crypto‑engine (e.g.
ML‑KEM‑768+A128GCM
). - Warnings – non‑fatal conditions (usage threshold near, sunset scheduled, etc.) returned by the platform.
Thread‑safety: the class is a simple data carrier with no internal synchronisation. Treat instances as immutable once returned by the SDK and refrain from mutating them across threads.
- Since:
- 1.0.0
- Author:
- Anka Technologies SDK Team
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the plaintext payload, Base64‑encoded.int
hashCode()
void
setActualKeyUsed
(String actualKeyUsed) void
setAlgorithmUsed
(String algorithmUsed) void
setDecryptedData
(String decryptedData) Sets the Base64 representation of the plaintext payload.void
setKeyRequested
(String keyRequested) void
setWarnings
(List<String> warnings) toString()
-
Constructor Details
-
DecryptFileResult
public DecryptFileResult()
-
-
Method Details
-
getDecryptedData
Returns the plaintext payload, Base64‑encoded.- Returns:
- Base64 string containing the decrypted file contents
-
setDecryptedData
Sets the Base64 representation of the plaintext payload. Intended for internal use by the SDK’s mapping layer.- Parameters:
decryptedData
- Base64‑encoded plaintext (must not benull
)
-
getKeyRequested
- Returns:
- the key ID originally requested by the client
-
setKeyRequested
- Parameters:
keyRequested
- the key ID originally requested by the client
-
getActualKeyUsed
- Returns:
- the key ID actually used by the server, or
null
if identical tokeyRequested
-
setActualKeyUsed
- Parameters:
actualKeyUsed
- the key ID effectively used by the server
-
getAlgorithmUsed
- Returns:
- algorithm negotiated by the crypto‑engine
-
setAlgorithmUsed
- Parameters:
algorithmUsed
- algorithm negotiated by the crypto‑engine
-
getWarnings
-
setWarnings
-
toString
-
equals
-
hashCode
-