summaryrefslogtreecommitdiff
path: root/eaaf_core_api/src
diff options
context:
space:
mode:
authorThomas <>2023-06-05 16:36:14 +0200
committerThomas <>2023-06-05 16:36:14 +0200
commit32a30dd4731bca0cd87e9153addbac8d970d7c09 (patch)
tree646495a30ee2363512b93cf83d8d2460ced702d6 /eaaf_core_api/src
parent7e2f79375c043bfba205a2c2a69dad5cbb9ab8f4 (diff)
downloadEAAF-Components-32a30dd4731bca0cd87e9153addbac8d970d7c09.tar.gz
EAAF-Components-32a30dd4731bca0cd87e9153addbac8d970d7c09.tar.bz2
EAAF-Components-32a30dd4731bca0cd87e9153addbac8d970d7c09.zip
chore(core): add @JsonCreator annotation to enum
Diffstat (limited to 'eaaf_core_api/src')
-rw-r--r--eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/data/ExtendedPvpAttributeDefinitions.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/data/ExtendedPvpAttributeDefinitions.java b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/data/ExtendedPvpAttributeDefinitions.java
index 7be811aa..771829c9 100644
--- a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/data/ExtendedPvpAttributeDefinitions.java
+++ b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/data/ExtendedPvpAttributeDefinitions.java
@@ -22,6 +22,8 @@ package at.gv.egiz.eaaf.core.api.data;
import java.util.NoSuchElementException;
import java.util.stream.Stream;
+import com.fasterxml.jackson.annotation.JsonCreator;
+
public interface ExtendedPvpAttributeDefinitions extends PvpAttributeDefinitions {
String EIDAS_CONNECTOR_UNIQUEID_NAME = "urn:eidgvat:attributes.eidas.uniqueId";
@@ -67,6 +69,7 @@ public interface ExtendedPvpAttributeDefinitions extends PvpAttributeDefinitions
* @param s mandate-mode String parameter
* @return mandate mode, or {@link NoSuchElementException} if mode is unknown
*/
+ @JsonCreator
public static SpMandateModes fromString(final String mode) {
return Stream.of(SpMandateModes.values())
.filter(el -> el.getMode().equals(mode))