Class DecryptResultMetadata
java.lang.Object
co.ankatech.ankasecure.sdk.model.DecryptResultMetadata
DecryptResultMetadata
Value object returned by
AnkaSecureSdk#decryptFile}. It encapsulates:- Plaintext payload –
- 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
int
hashCode()
void
setActualKeyUsed
(String actualKeyUsed) void
setAlgorithmUsed
(String algorithmUsed) void
setKeyRequested
(String keyRequested) void
setWarnings
(List<String> warnings) toString()
-
Constructor Details
-
DecryptResultMetadata
public DecryptResultMetadata()
-
-
Method Details
-
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
-