public final class SSITokenCommon extends Object
Modifier and Type | Field and Description |
---|---|
static long |
MAX_CLOCK_SKEW_MS
Default value (in milliseconds) for maximum clock skew allowed between
the machines issuing and validating the token.
|
static long |
TOKEN_VALIDITY_WINDOW_MS
SSIToken expiration window (in milliseconds).
|
Modifier and Type | Method and Description |
---|---|
static Date |
getClockSkewAdjustedExpirationTime(@NonNull Date expiresAt)
Adjusts "expiresAt" time which indicates the time on or after which token
is not valid to account for clock skew at destination machine where token
validity is checked.
|
static Date |
getClockSkewAdjustedNotBeforeTime(@NonNull Date notBefore)
Adjusts "notBefore" time which indicates the time until which token is
not valid to account for clock skew at destination machine where token
validity is checked.
|
static Date |
getExpirationTime(@NonNull Date referenceDate)
Computes token expiration time from the given reference time based on
token validity period.
|
public static final long MAX_CLOCK_SKEW_MS
public static final long TOKEN_VALIDITY_WINDOW_MS
public static Date getClockSkewAdjustedNotBeforeTime(@NonNull @NonNull Date notBefore)
public static Date getClockSkewAdjustedExpirationTime(@NonNull @NonNull Date expiresAt)