Package io.jans.as.server.service.date
Class DateFormatterService
- java.lang.Object
-
- io.jans.as.server.service.date.DateFormatterService
-
@ApplicationScoped @Named public class DateFormatterService extends java.lang.Object
- Author:
- Yuriy Z
-
-
Constructor Summary
Constructors Constructor Description DateFormatterService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.Serializable
formatClaim(java.util.Date date, io.jans.as.model.common.CallerType callerType)
java.io.Serializable
formatClaim(java.util.Date date, java.lang.String patternKey)
java.io.Serializable
formatClaimFallback(java.util.Date date)
-
-
-
Method Detail
-
formatClaim
public java.io.Serializable formatClaim(java.util.Date date, io.jans.as.model.common.CallerType callerType)
-
formatClaim
public java.io.Serializable formatClaim(java.util.Date date, java.lang.String patternKey)
- Parameters:
date
- date to formatpatternKey
- pattern key. It's by intention is not enum to allow arbitrary key (not "locked" by CallerType)- Returns:
- formatter value
-
formatClaimFallback
public java.io.Serializable formatClaimFallback(java.util.Date date)
-
-