Package com.microstrategy.webapi.acm
Class ACMTimeToLive.MasterSessionTTL
- java.lang.Object
-
- com.microstrategy.webapi.acm.ACMTimeToLive
-
- com.microstrategy.webapi.acm.ACMTimeToLive.MasterSessionTTL
-
- Enclosing class:
- ACMTimeToLive
public static class ACMTimeToLive.MasterSessionTTL extends ACMTimeToLive
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.microstrategy.webapi.acm.ACMTimeToLive
ACMTimeToLive.MasterSessionTTL, ACMTimeToLive.RealSessionTTL
-
-
Field Summary
-
Fields inherited from class com.microstrategy.webapi.acm.ACMTimeToLive
mIdleTimeout, mLock, mTtl, mTtlSecsSinceMidnight
-
-
Constructor Summary
Constructors Constructor Description MasterSessionTTL(java.util.Calendar iNow, int iIdleTimeout, int iMasterIdleTimeout, int JWTlifetime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
extendTtlByIdleTimeout(java.util.Calendar iNow)
long
getMasterAbsoluteTimeout()
return the master session ID absolute timeout in second since 1970 initial time extended with a valid auth.rememberme.timeout
if -1 return, it means that master session ID will be governed by mTtl, no IServer session re-establishmentlong
getMasterCreationTime()
return the master session ID creation time in second since 1970 initial timeint
getMasterIdleTimeout()
boolean
isExpired(java.util.Calendar iNow)
isExpired
checks if a master session Id is expired.-
Methods inherited from class com.microstrategy.webapi.acm.ACMTimeToLive
extendTtlByIdleTimeout, getIdleTimeout, getSecsSinceMidnight, getTtl, setTtl
-
-
-
-
Method Detail
-
getMasterIdleTimeout
public int getMasterIdleTimeout()
-
getMasterAbsoluteTimeout
public long getMasterAbsoluteTimeout()
return the master session ID absolute timeout in second since 1970 initial time extended with a valid auth.rememberme.timeout
if -1 return, it means that master session ID will be governed by mTtl, no IServer session re-establishment- Returns:
-
getMasterCreationTime
public long getMasterCreationTime()
return the master session ID creation time in second since 1970 initial time- Returns:
-
extendTtlByIdleTimeout
public void extendTtlByIdleTimeout(java.util.Calendar iNow)
- Overrides:
extendTtlByIdleTimeout
in classACMTimeToLive
-
isExpired
public boolean isExpired(java.util.Calendar iNow)
isExpired
checks if a master session Id is expired.
if remember me feature is turned on, master session Id expiration is controlled by the auth.rememberme.timeout value.
if remember me feature is turned off, master session Id expiration is controlled by the time to live value.- Overrides:
isExpired
in classACMTimeToLive
- Parameters:
iNow
-- Returns:
- true or false
-
-