Class NumericDate

java.lang.Object
org.jose4j.jwt.NumericDate

public class NumericDate extends Object
  • Method Details

    • now

      public static NumericDate now()
    • fromSeconds

      public static NumericDate fromSeconds(long secondsFromEpoch)
    • fromMilliseconds

      public static NumericDate fromMilliseconds(long millisecondsFromEpoch)
    • addSeconds

      public void addSeconds(long seconds)
    • getValue

      public long getValue()
      Returns a numeric value representing the number of seconds from 1970-01-01T0:0:0Z UTC until the given UTC date/time
      Returns:
      value
    • setValue

      public void setValue(long value)
    • getValueInMillis

      public long getValueInMillis()
    • isBefore

      public boolean isBefore(NumericDate when)
    • isOnOrAfter

      public boolean isOnOrAfter(NumericDate when)
    • isAfter

      public boolean isAfter(NumericDate when)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object