public class BasicSPSessionCreationStrategy extends Object implements Function<ProfileRequestContext,SPSession>
BasicSPSession based on profile execution state.
This strategy is a default approach that uses a lookup strategy for a RelyingPartyContext
to obtain an issuer value, used as the SPSession's relying party ID. The authentication flow ID
comes from the AuthenticationResult
in the AuthenticationContext. The session has a
creation time based on the time of execution, and the expiration is based on a configurable lifetime.
| Modifier and Type | Field and Description |
|---|---|
private org.slf4j.Logger |
log
Class logger.
|
private Function<ProfileRequestContext,net.shibboleth.idp.profile.context.RelyingPartyContext> |
relyingPartyContextLookupStrategy
RelyingPartyContext lookup strategy.
|
private long |
sessionLifetime
Lifetime of sessions to create.
|
| Constructor and Description |
|---|
BasicSPSessionCreationStrategy(long lifetime)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
SPSession |
apply(ProfileRequestContext input) |
void |
setRelyingPartyContextLookupStrategy(Function<ProfileRequestContext,net.shibboleth.idp.profile.context.RelyingPartyContext> strategy)
Set the strategy used to locate the
RelyingPartyContext to operate on. |
@Nonnull private final org.slf4j.Logger log
@Positive @Duration private final long sessionLifetime
@Nonnull private Function<ProfileRequestContext,net.shibboleth.idp.profile.context.RelyingPartyContext> relyingPartyContextLookupStrategy
public void setRelyingPartyContextLookupStrategy(@Nonnull Function<ProfileRequestContext,net.shibboleth.idp.profile.context.RelyingPartyContext> strategy)
RelyingPartyContext to operate on.strategy - lookup strategy@Nullable public SPSession apply(@Nullable ProfileRequestContext input)
apply in interface Function<ProfileRequestContext,SPSession>Copyright © 1999–2018 Shibboleth Consortium. All rights reserved.