From 89dc6315197f8d0cec79038ef0703d02af30a7a2 Mon Sep 17 00:00:00 2001 From: Thomas <> Date: Thu, 25 May 2023 16:37:10 +0200 Subject: feat(core): support Base64 to byte[] decoding is required --- .../gv/egiz/eaaf/core/impl/idp/auth/data/AuthProcessDataWrapper.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'eaaf_core/src/main/java/at/gv') diff --git a/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/data/AuthProcessDataWrapper.java b/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/data/AuthProcessDataWrapper.java index 383b4535..e76d0728 100644 --- a/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/data/AuthProcessDataWrapper.java +++ b/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/data/AuthProcessDataWrapper.java @@ -325,6 +325,10 @@ public class AuthProcessDataWrapper final Object obj = authProcessData.get(key); if (obj != null && clazz.isInstance(obj)) { return (T) obj; + + } else if (obj instanceof String && clazz.equals(byte[].class)) { + return (T) java.util.Base64.getDecoder().decode((String) obj); + } } -- cgit v1.2.3