Package org.jose4j.jwt
Class NumericDate
java.lang.Object
org.jose4j.jwt.NumericDate
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddSeconds(long seconds) booleanstatic NumericDatefromMilliseconds(long millisecondsFromEpoch) static NumericDatefromSeconds(long secondsFromEpoch) longgetValue()Returns a numeric value representing the number of seconds from 1970-01-01T0:0:0Z UTC until the given UTC date/timelonginthashCode()booleanisAfter(NumericDate when) booleanisBefore(NumericDate when) booleanisOnOrAfter(NumericDate when) static NumericDatenow()voidsetValue(long value) toString()
-
Method Details
-
now
-
fromSeconds
-
fromMilliseconds
-
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
-
isOnOrAfter
-
isAfter
-
toString
-
equals
-
hashCode
public int hashCode()
-