diff options
author | Christof Rabensteiner <christof.rabensteiner@iaik.tugraz.at> | 2019-06-19 13:35:14 +0200 |
---|---|---|
committer | Christof Rabensteiner <christof.rabensteiner@iaik.tugraz.at> | 2019-06-19 13:35:14 +0200 |
commit | 97aadc426ca2f61dccd58a05f37d065b2752ef6d (patch) | |
tree | ae53ae7bf447545ad23e2efcad8c9a1662ffd4cb /src/main/java/at/gv/egiz/moazs/pipeline/SameThreadDeliveryPipeline.java | |
parent | 6044145569bdc0e86d2c1831fa50051227822864 (diff) | |
download | moa-zs-97aadc426ca2f61dccd58a05f37d065b2752ef6d.tar.gz moa-zs-97aadc426ca2f61dccd58a05f37d065b2752ef6d.tar.bz2 moa-zs-97aadc426ca2f61dccd58a05f37d065b2752ef6d.zip |
Unify AppDeliveryID Spelling
Diffstat (limited to 'src/main/java/at/gv/egiz/moazs/pipeline/SameThreadDeliveryPipeline.java')
-rw-r--r-- | src/main/java/at/gv/egiz/moazs/pipeline/SameThreadDeliveryPipeline.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/at/gv/egiz/moazs/pipeline/SameThreadDeliveryPipeline.java b/src/main/java/at/gv/egiz/moazs/pipeline/SameThreadDeliveryPipeline.java index f264e52..ae8286f 100644 --- a/src/main/java/at/gv/egiz/moazs/pipeline/SameThreadDeliveryPipeline.java +++ b/src/main/java/at/gv/egiz/moazs/pipeline/SameThreadDeliveryPipeline.java @@ -83,13 +83,13 @@ public class SameThreadDeliveryPipeline implements DeliveryPipeline { var status = msgClientFactory.create(msgRequest, mzsRequest.getConfig(), interceptor).send(); exceptionBuilder.withMsgResult(status); - verifyStatus(appDeliveryId, exceptionBuilder); + verifySignedStatus(appDeliveryId, exceptionBuilder); repository.add(status); } catch (MoaZSException exception) { - log.error(format("An error occured while processing the DeliveryRequest with AppDeliveryID = %s. ", + log.error(format("An error occured while processing the DeliveryRequest with AppDeliveryID=%s. ", appDeliveryId), exception); var errorStatus = generateErrorStatus(exception, appDeliveryId); @@ -97,13 +97,13 @@ public class SameThreadDeliveryPipeline implements DeliveryPipeline { } } - private void verifyStatus(String appDeliveryId, MoaZSException.Builder exceptionBuilder) throws MoaZSException { + private void verifySignedStatus(String appDeliveryId, MoaZSException.Builder exceptionBuilder) throws MoaZSException { try { var signedStatus = repository.getSignedDeliveryRequestStatus(appDeliveryId).get(); verifier.verify(signedStatus); } catch (Exception ex) { - throw exceptionBuilder.withMessage(format("Signature of DeliveryRequestStatus with AppDeliveryId={} " + + throw exceptionBuilder.withMessage(format("Signature of DeliveryRequestStatus with AppDeliveryID=%s " + " is not valid.", appDeliveryId)) .withErrorCode(MoaZSException.ERROR_MOASP_SIGNATURE_INVALID) .withCause(ex) |