summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Lenz <thomas.lenz@egiz.gv.at>2019-06-05 13:11:54 +0200
committerThomas Lenz <thomas.lenz@egiz.gv.at>2019-06-05 13:11:54 +0200
commit4ce9dae4c77ed6f2f37a2e65bc8198f7cf3f5c5b (patch)
tree2a2c142985967ea8b980e6c49eaed526b50cf61e
parent293dfc98ceadd2c7ec058b9a7d2f3050d5dcb88e (diff)
downloadEAAF-Components-4ce9dae4c77ed6f2f37a2e65bc8198f7cf3f5c5b.tar.gz
EAAF-Components-4ce9dae4c77ed6f2f37a2e65bc8198f7cf3f5c5b.tar.bz2
EAAF-Components-4ce9dae4c77ed6f2f37a2e65bc8198f7cf3f5c5b.zip
add useMandate flag
-rw-r--r--eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/EidAuthenticationData.java16
-rw-r--r--eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/IEidAuthData.java8
2 files changed, 24 insertions, 0 deletions
diff --git a/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/EidAuthenticationData.java b/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/EidAuthenticationData.java
index 71ee0172..8a59a0be 100644
--- a/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/EidAuthenticationData.java
+++ b/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/EidAuthenticationData.java
@@ -20,6 +20,7 @@ public class EidAuthenticationData extends AuthenticationData implements IEidAut
private byte[] eIDToken;
private byte[] signerCertificate;
private EID_IDENTITY_STATUS_LEVEL_VALUES eidStatus;
+ private boolean useMandate = false;
@Override
public byte[] getSignerCertificate() {
@@ -37,6 +38,11 @@ public class EidAuthenticationData extends AuthenticationData implements IEidAut
}
+ @Override
+ public boolean isUseMandate() {
+ return useMandate;
+ }
+
/**
* Set the status of the E-ID identity
@@ -83,4 +89,14 @@ public class EidAuthenticationData extends AuthenticationData implements IEidAut
this.signerCertificate = signerCertificate;
}
+
+ /**
+ * Set flag that mandates are used in this process
+ *
+ * @param useMandate true if mandates was used, otherwise false
+ */
+ public void setUseMandate(boolean useMandate) {
+ this.useMandate = useMandate;
+ }
+
}
diff --git a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/IEidAuthData.java b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/IEidAuthData.java
index 44ece8fe..a9d6a51e 100644
--- a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/IEidAuthData.java
+++ b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/IEidAuthData.java
@@ -26,4 +26,12 @@ public interface IEidAuthData extends IAuthData {
* @return {@link PVPAttributeDefinitions.EID_IDENTITY_STATUS_LEVEL_VALUES}
*/
PVPAttributeDefinitions.EID_IDENTITY_STATUS_LEVEL_VALUES getEIDStatus();
+
+
+ /**
+ * Flag that mandates are used
+ *
+ * @return true if mandates are used, otherwise false
+ */
+ boolean isUseMandate();
}