aboutsummaryrefslogtreecommitdiff
path: root/eidas_modules/authmodule-eIDAS-v2/src
diff options
context:
space:
mode:
authorChristian Kollmann <christian.kollmann@a-sit.at>2021-03-04 15:05:50 +0100
committerChristian Kollmann <christian.kollmann@a-sit.at>2021-03-04 15:05:50 +0100
commit76fcc8227de6375a6ae5e988acd368c2cf893516 (patch)
treebcc183b827f592fbe8886aaa51562c3e1ac47805 /eidas_modules/authmodule-eIDAS-v2/src
parent20fcdf7cd830af9f23645c71f536af95418ad1be (diff)
downloadNational_eIDAS_Gateway-76fcc8227de6375a6ae5e988acd368c2cf893516.tar.gz
National_eIDAS_Gateway-76fcc8227de6375a6ae5e988acd368c2cf893516.tar.bz2
National_eIDAS_Gateway-76fcc8227de6375a6ae5e988acd368c2cf893516.zip
Refactor RegisterResult to make it immutable
Diffstat (limited to 'eidas_modules/authmodule-eIDAS-v2/src')
-rw-r--r--eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/dao/RegisterResult.java32
1 files changed, 15 insertions, 17 deletions
diff --git a/eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/dao/RegisterResult.java b/eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/dao/RegisterResult.java
index 4674751d..369a4e31 100644
--- a/eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/dao/RegisterResult.java
+++ b/eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/dao/RegisterResult.java
@@ -24,30 +24,24 @@
package at.asitplus.eidas.specific.modules.auth.eidas.v2.dao;
import at.gv.e_government.reference.namespace.persondata._20020228.PostalAddressType;
-import lombok.EqualsAndHashCode;
-import lombok.Getter;
-import lombok.NoArgsConstructor;
-import lombok.ToString;
+import lombok.Data;
-@Getter
-@NoArgsConstructor
-@ToString
-@EqualsAndHashCode
+@Data
public class RegisterResult {
// MDS
- private String pseudonym;
- private String givenName;
- private String familyName;
- private String dateOfBirth;
+ private final String pseudonym;
+ private final String givenName;
+ private final String familyName;
+ private final String dateOfBirth;
// additional attributes
- private String placeOfBirth;
- private String birthName;
- private String taxNumber;
- private PostalAddressType address;
+ private final String placeOfBirth;
+ private final String birthName;
+ private final String taxNumber;
+ private final PostalAddressType address;
- private String bpk;
+ private final String bpk;
/**
* Register search result.
@@ -64,6 +58,10 @@ public class RegisterResult {
this.givenName = givenName;
this.familyName = familyName;
this.dateOfBirth = dateOfBirth;
+ this.placeOfBirth = null;
+ this.birthName = null;
+ this.taxNumber = null;
+ this.address = null;
}
/**