Class CrestSessionService.Builder
java.lang.Object
org.forgerock.openig.tools.session.CrestSessionService.Builder
- Enclosing class:
- CrestSessionService
Builder of the
CrestSessionService
.-
Method Summary
Modifier and TypeMethodDescriptionReturns aSessionService
implementation based on theAmVersion
.sessionCaching
(boolean sessionCaching) Setting this to true indicates that session caching is enabled.sessionIdleRefreshEnabled
(boolean sessionIdleRefreshEnabled) Setting this to true indicates that session idle refresh is enabled.sessionIdleRefreshInterval
(Duration interval) Set the session idle refresh interval.sessionProperties
(Set<String> sessionProperties) Set the session properties on this Builder.
-
Method Details
-
sessionProperties
Set the session properties on this Builder. These will be transformed in to properties before being used in the sessionInfo request.- Parameters:
sessionProperties
- The session properties to request from the session info endpoint.- Returns:
- this Builder
-
sessionCaching
Setting this to true indicates that session caching is enabled.- Parameters:
sessionCaching
- Set to true to indicate that session caching is enabled.- Returns:
- this Builder
-
sessionIdleRefreshEnabled
Setting this to true indicates that session idle refresh is enabled.- Parameters:
sessionIdleRefreshEnabled
- Set to true to indicate that session idle refresh is enabled.- Returns:
- this Builder
-
sessionIdleRefreshInterval
Set the session idle refresh interval. Wait at least this long between sessionInfo requests before triggering a session idle refresh.- Parameters:
interval
- Set the session idle refresh interval.- Returns:
- this Builder.
-
build
Returns aSessionService
implementation based on theAmVersion
.- Parameters:
amVersion
- TheAmVersion
that should be taken into account when creating the CREST implementation of theSessionService
.- Returns:
- a
SessionService
instance.
-