From 3cd52ab38e4d57b6f056dbf47897d80f419522df Mon Sep 17 00:00:00 2001 From: Thomas <> Date: Mon, 19 Apr 2021 18:58:31 +0200 Subject: refactor DateOfBirth in IAuthData and all implementations because DateOfBirth from SZR has not be a valid Date object --- .../at/gv/egiz/eaaf/core/api/idp/IAuthData.java | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'eaaf_core_api/src/main/java') 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". + * + *
Attention: MM and dd can also be 00 in case of an unknown date
* * @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. + * + *Attention: If birthday has un unusal form like MM and dd are 00 + * a transformation CAN NOT be possible
+ * + * @param pattern Date pattern, like "yyyy-MM-dd" e.g. + * @return Formatted birthday ornull
if date can not be transformed
*/
- String getFormatedDateOfBirth();
+ String getDateOfBirthFormated(String pattern);
/**
* Get the encrypted SourceId (vSZ) from new E-ID scheme.
--
cgit v1.2.3