summaryrefslogtreecommitdiff
path: root/eaaf_core_utils/src/main
diff options
context:
space:
mode:
authorThomas Lenz <thomas.lenz@egiz.gv.at>2020-11-04 17:50:28 +0100
committerThomas Lenz <thomas.lenz@egiz.gv.at>2020-11-04 17:50:28 +0100
commit62e36db9929c944754a3cebabcbb8227b3f8b592 (patch)
treedbba8fafbf5fe0281d0f9bd54bb1e012bbe3d793 /eaaf_core_utils/src/main
parent651b5e445023d7d7004a8a7387065454b823c581 (diff)
downloadEAAF-Components-62e36db9929c944754a3cebabcbb8227b3f8b592.tar.gz
EAAF-Components-62e36db9929c944754a3cebabcbb8227b3f8b592.tar.bz2
EAAF-Components-62e36db9929c944754a3cebabcbb8227b3f8b592.zip
update logging
Diffstat (limited to 'eaaf_core_utils/src/main')
-rw-r--r--eaaf_core_utils/src/main/java/at/gv/egiz/eaaf/core/impl/utils/AuthenticatedEncryptionPendingRequestIdGenerationStrategy.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/eaaf_core_utils/src/main/java/at/gv/egiz/eaaf/core/impl/utils/AuthenticatedEncryptionPendingRequestIdGenerationStrategy.java b/eaaf_core_utils/src/main/java/at/gv/egiz/eaaf/core/impl/utils/AuthenticatedEncryptionPendingRequestIdGenerationStrategy.java
index ebfe7500..b10f8586 100644
--- a/eaaf_core_utils/src/main/java/at/gv/egiz/eaaf/core/impl/utils/AuthenticatedEncryptionPendingRequestIdGenerationStrategy.java
+++ b/eaaf_core_utils/src/main/java/at/gv/egiz/eaaf/core/impl/utils/AuthenticatedEncryptionPendingRequestIdGenerationStrategy.java
@@ -144,8 +144,7 @@ public class AuthenticatedEncryptionPendingRequestIdGenerationStrategy
log.debug("Token decryption successful");
if (!(StringUtils.countMatches(stringToken, TOKEN_SEPARATOR) == ENCODED_TOKEN_PARTS - 1)) {
- log.warn("PendingRequestId has an unvalid format");
- log.debug("PendingRequestId: {}", stringToken);
+ log.info("PendingRequestId: {}", stringToken);
throw new PendingReqIdValidationException(null, "PendingReqId has an unvalid format");
}
@@ -161,8 +160,7 @@ public class AuthenticatedEncryptionPendingRequestIdGenerationStrategy
final DateTime now = DateTime.now();
if (timeStamp.withFieldAdded(DurationFieldType.seconds(), maxPendingRequestIdLifeTime)
.isBefore(now)) {
- log.warn("Token exceeds the valid period");
- log.debug("Token: {} | Now: {}", timeStamp, now);
+ log.info("Token exceeds the valid period. Token: {} | Now: {}", timeStamp, now);
throw new PendingReqIdValidationException(internalPendingReqId,
"PendingRequestId exceeds the valid period");