Class SecureDateProvider

  • All Implemented Interfaces:
    DateProvider

    public class SecureDateProvider
    extends java.lang.Object
    implements DateProvider
    Class used to get the real time based of the server sync date
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean canEnableSecureDate()
      Returns whether secure date can be enabled on this device
      BatchDate getCurrentDate()  
      java.util.Date getDate()
      Method used to obtain the real date based on the server date if the server date was sync
      void initServerDate​(java.util.Date pServerDate)
      Method used to init the server date
      boolean isSecureDateAvailable()
      Method used to know if the date is sync with the server
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SecureDateProvider

        public SecureDateProvider()
    • Method Detail

      • getDate

        public java.util.Date getDate()
        Method used to obtain the real date based on the server date if the server date was sync
        Returns:
        the actual secure time
      • isSecureDateAvailable

        public boolean isSecureDateAvailable()
        Method used to know if the date is sync with the server
        Returns:
        true if the secure date is available false otherwise (in which case the system date will be returned)
      • initServerDate

        public void initServerDate​(java.util.Date pServerDate)
        Method used to init the server date
        Parameters:
        pServerDate - the sync server date
      • canEnableSecureDate

        protected boolean canEnableSecureDate()
        Returns whether secure date can be enabled on this device