Package org.keycloak.models.map.common
Class TimeAdapter
- java.lang.Object
- 
- org.keycloak.models.map.common.TimeAdapter
 
- 
- 
Constructor SummaryConstructors Constructor Description TimeAdapter()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static longfromIntegerWithTimeInSecondsToLongWithTimeAsInSeconds(int timestamp)Wrapper to all upgrading from an Integer to a Long while Keycloak core still handles all time seconds since 1970 as seconds as integers.static intfromLongWithTimeInSecondsToIntegerWithTimeInSeconds(Long timestamp)Wrapper to all unsafe downgrading from a Long to an Integer while Keycloak core still handles all time since 1970 as seconds as integers.static LongfromMilliSecondsToSeconds(Long milliSeconds)static LongfromSecondsToMilliseconds(int seconds)static LongfromSecondsToMilliseconds(Long seconds)
 
- 
- 
- 
Method Detail- 
fromLongWithTimeInSecondsToIntegerWithTimeInSecondspublic static int fromLongWithTimeInSecondsToIntegerWithTimeInSeconds(Long timestamp) Wrapper to all unsafe downgrading from a Long to an Integer while Keycloak core still handles all time since 1970 as seconds as integers. This is safer to use than downgrading in several places as that might be missed once the Core starts to use longs as timestamps as well. Simplify/remove once #11053 has been implemented.
 - 
fromIntegerWithTimeInSecondsToLongWithTimeAsInSecondspublic static long fromIntegerWithTimeInSecondsToLongWithTimeAsInSeconds(int timestamp) Wrapper to all upgrading from an Integer to a Long while Keycloak core still handles all time seconds since 1970 as seconds as integers. This is safer to use and remove once the Core starts to use longs as timestamps as well. Simplify/remove once #11053 has been implemented.
 - 
fromSecondsToMillisecondspublic static Long fromSecondsToMilliseconds(int seconds) 
 
- 
 
-