Package net.shibboleth.idp.session.impl
Class BasicSPSessionCreationStrategy
- java.lang.Object
-
- net.shibboleth.idp.session.impl.BasicSPSessionCreationStrategy
-
- All Implemented Interfaces:
Function<ProfileRequestContext,SPSession>
public class BasicSPSessionCreationStrategy extends Object implements Function<ProfileRequestContext,SPSession>
A function to create aBasicSPSessionbased on profile execution state.This strategy is a default approach that uses a lookup strategy for a
RelyingPartyContextto obtain an issuer value, used as theSPSession's relying party ID. The authentication flow ID comes from theAuthenticationResultin theAuthenticationContext. The session has a creation time based on the time of execution, and the expiration is based on a configurable lifetime.
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.LoggerlogClass logger.private Function<ProfileRequestContext,RelyingPartyContext>relyingPartyContextLookupStrategyRelyingPartyContext lookup strategy.private DurationsessionLifetimeLifetime of sessions to create.
-
Constructor Summary
Constructors Constructor Description BasicSPSessionCreationStrategy(Duration lifetime)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SPSessionapply(ProfileRequestContext input)voidsetRelyingPartyContextLookupStrategy(Function<ProfileRequestContext,RelyingPartyContext> strategy)Set the strategy used to locate theRelyingPartyContextto operate on.
-
-
-
Field Detail
-
log
@Nonnull private final org.slf4j.Logger log
Class logger.
-
sessionLifetime
@Nonnull private final Duration sessionLifetime
Lifetime of sessions to create.
-
relyingPartyContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,RelyingPartyContext> relyingPartyContextLookupStrategy
RelyingPartyContext lookup strategy.
-
-
Method Detail
-
setRelyingPartyContextLookupStrategy
public void setRelyingPartyContextLookupStrategy(@Nonnull Function<ProfileRequestContext,RelyingPartyContext> strategy)Set the strategy used to locate theRelyingPartyContextto operate on.- Parameters:
strategy- lookup strategy
-
apply
@Nullable public SPSession apply(@Nullable ProfileRequestContext input)
- Specified by:
applyin interfaceFunction<ProfileRequestContext,SPSession>
-
-