From 97aadc426ca2f61dccd58a05f37d065b2752ef6d Mon Sep 17 00:00:00 2001 From: Christof Rabensteiner Date: Wed, 19 Jun 2019 13:35:14 +0200 Subject: Unify AppDeliveryID Spelling --- .../at/gv/egiz/moazs/pipeline/SameThreadDeliveryPipeline.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/main/java/at/gv/egiz/moazs/pipeline/SameThreadDeliveryPipeline.java') 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) -- cgit v1.2.3