/** * Get the time, in milliseconds since the epoch, when the authentication process ended. A value of 0 indicates * that authentication has not yet completed. * * @return time when the authentication process ended */ @NonNegative public long getCompletionInstant() { return completionInstant; }
/** * Time in milliseconds to expire consent storage records. * * @return time in milliseconds to expire consent storage records */ @Nonnull @NonNegative public Long getLifetime() { return lifetime; }
/** * Get the clock skew. * * @return the clock skew */ @NonNegative @Duration public long getClockSkew() { return clockSkew; }
/** * Get the SQL query timeout. * * @return the timeout in milliseconds */ @NonNegative @Duration public long getQueryTimeout() { return queryTimeout; }
/** * Time in milliseconds to expire consent storage records. * * @return time in milliseconds to expire consent storage records */ @Nonnull @NonNegative @Duration public Long getLifetime() { return lifetime; }
/** * Gets the number of milliseconds between one cleanup and another. A value of 0 indicates that no cleanup will be * performed. * * @return number of milliseconds between one cleanup and another */ @NonNegative @Duration public long getCleanupInterval() { return cleanupInterval; }
/** * Gets the amount of time, in milliseconds, for which a message is valid. * * @return amount of time, in milliseconds, for which a message is valid */ @NonNegative @Duration public long getMessageLifetime() { return messageLifetime; }
/** * Gets the lifetime in milliseconds of replay entries. * * @return lifetime in milliseconds of entries */ @Duration @NonNegative public long getExpires() { return expires; }
/** * Get the SQL query timeout. * * @return the timeout in milliseconds */ @NonNegative @Duration public long getQueryTimeout() { return queryTimeout; }
/** * Get the maximum amount of time in milliseconds, since first usage, a flow should be considered active. A value * of 0 indicates that there is no upper limit on the lifetime on an active flow. * * @return maximum amount of time in milliseconds a flow should be considered active, never less than 0 */ @NonNegative @Duration public long getLifetime() { return lifetime; }
/** * Get duration in milliseconds since an {@link AuthenticationResult} was created that * allows it to be reused for this request. * * <p>If zero, no constraint is applied.</p> * * @return duration in milliseconds, or zero * * @since 3.4.0 */ @NonNegative @Duration public long getMaxAge() { return maxAge; }
/** * Constructor. * * @param offset milliseconds to subtract from record expiration to establish session expiration value */ public SAML1SPSessionSerializer(@Duration @NonNegative @Nonnull @ParameterName(name="offset") final long offset) { super(offset); }
/** * Set the number of retries to attempt for a failed transaction. Defaults to 3. * * @param retries the number of retries */ public void setTransactionRetries(@NonNegative final int retries) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); transactionRetry = (int) Constraint.isGreaterThanOrEqual(0, retries, "Timeout must be greater than or equal to 0"); }
/** * Get the SQL query timeout. * * @return the timeout in milliseconds */ @Duration @NonNegative public long getQueryTimeout() { return idStore.getQueryTimeout(); }
/** * Set the number of retries to attempt for a failed transaction. Defaults to 3. * * @param retries the number of retries */ public void setTransactionRetries(@NonNegative final int retries) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); idStore.setTransactionRetries(retries); }
/** * Constructor. * * @param offset milliseconds to subtract from record expiration to establish session expiration value */ protected AbstractSPSessionSerializer(@Duration @NonNegative final long offset) { expirationOffset = Constraint.isGreaterThanOrEqual(0, offset, "Offset must be greater than or equal to zero"); }
/** * Constructor. * * @param offset milliseconds to subtract from record expiration to establish session expiration value */ public BasicSPSessionSerializer(@Duration @NonNegative @ParameterName(name="offset") final long offset) { super(offset); }
/** * Constructor. * * @param offset milliseconds to subtract from record expiration to establish session expiration value */ public CASSPSessionSerializer(@Duration @NonNegative @ParameterName(name="offset") final long offset) { super(offset); }
/** * Set duration in milliseconds since an {@link AuthenticationResult} was created that * allows it to be reused for this request. * * <p>Set to zero to apply no constraint.</p> * * @param age duration in milliseconds, or zero * * @return this context * * @since 3.4.0 */ @Nonnull public AuthenticationContext setMaxAge(@NonNegative @Duration final long age) { maxAge = Constraint.isGreaterThanOrEqual(0, age, "MaxAge cannot be negative"); return this; }
@Nonnull @Duration @NonNegative private Long lifetime;