com.quorum.tessera.recovery.workflow.DecodePayloadHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tessera-recover Show documentation
Show all versions of tessera-recover Show documentation
Tessera is a stateless Java system that is used to enable the encryption, decryption, and distribution of private transactions for Quorum.
package com.quorum.tessera.recovery.workflow;
import com.quorum.tessera.data.EncryptedTransaction;
import com.quorum.tessera.enclave.EncodedPayload;
import com.quorum.tessera.enclave.PayloadEncoder;
public class DecodePayloadHandler implements BatchWorkflowAction {
private PayloadEncoder encoder;
public DecodePayloadHandler(PayloadEncoder encoder) {
this.encoder = encoder;
}
@Override
public boolean execute(BatchWorkflowContext event) {
EncryptedTransaction encryptedTransaction = event.getEncryptedTransaction();
EncodedPayload encodedPayload = encoder.decode(encryptedTransaction.getEncodedPayload());
event.setEncodedPayload(encodedPayload);
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy