summaryrefslogtreecommitdiff
path: root/eaaf_core_api/src
diff options
context:
space:
mode:
Diffstat (limited to 'eaaf_core_api/src')
-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.