summaryrefslogtreecommitdiff
path: root/eaaf_core_api
diff options
context:
space:
mode:
authorThomas <>2021-04-19 18:58:31 +0200
committerThomas <>2021-04-19 18:58:31 +0200
commit3cd52ab38e4d57b6f056dbf47897d80f419522df (patch)
tree9813d26b85c950e01a180b2e8240ad3e9dd62ff8 /eaaf_core_api
parent9e072b7105c4353ea4a193e03efd00f2f63d824c (diff)
downloadEAAF-Components-3cd52ab38e4d57b6f056dbf47897d80f419522df.tar.gz
EAAF-Components-3cd52ab38e4d57b6f056dbf47897d80f419522df.tar.bz2
EAAF-Components-3cd52ab38e4d57b6f056dbf47897d80f419522df.zip
refactor DateOfBirth in IAuthData and all implementations because DateOfBirth from SZR has not be a valid Date object
Diffstat (limited to 'eaaf_core_api')
-rw-r--r--eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/IAuthData.java21
1 files changed, 13 insertions, 8 deletions
diff --git a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/IAuthData.java b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/IAuthData.java
index 6626d24d..f76e8d76 100644
--- a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/IAuthData.java
+++ b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/IAuthData.java
@@ -75,19 +75,24 @@ public interface IAuthData {
String getGivenName();
/**
- * Date of birth of the user.
+ * Date of birth of the user as "yyyy-MM-dd".
+ *
+ * <p><b>Attention:</b> <i>MM</i> and <i>dd</i> can also be <i>00</i> in case of an unknown date </p>
*
* @return date of birth or null no data of birth is available
*/
- Date getDateOfBirth();
-
+ String getDateOfBirth();
+
/**
- * String formated date of birth of the user with pattern yyyy-MM-dd.
- *
- *
- * @return date of birth or '2999-12-31' if no data of birth is available
+ * Get date of birth with a specific date pattern.
+ *
+ * <p><b>Attention:</b> If birthday has un unusal form like <i>MM</i> and <i>dd</i> are <i>00</i>
+ * a transformation CAN NOT be possible </p>
+ *
+ * @param pattern Date pattern, like "yyyy-MM-dd" e.g.
+ * @return Formatted birthday or <code>null</code> if date can not be transformed
*/
- String getFormatedDateOfBirth();
+ String getDateOfBirthFormated(String pattern);
/**
* Get the encrypted SourceId (vSZ) from new E-ID scheme.