Class DateFormatterService


  • @ApplicationScoped
    @Named
    public class DateFormatterService
    extends Object
    Author:
    Yuriy Z
    • Constructor Detail

      • DateFormatterService

        public DateFormatterService()
    • Method Detail

      • formatClaim

        public Serializable formatClaim​(Date date,
                                        io.jans.as.model.common.CallerType callerType)
      • formatClaim

        public Serializable formatClaim​(Date date,
                                        String patternKey)
        Parameters:
        date - date to format
        patternKey - pattern key. It's by intention is not enum to allow arbitrary key (not "locked" by CallerType)
        Returns:
        formatter value