public class SAML1SPSessionCreationStrategy extends Object implements com.google.common.base.Function<ProfileRequestContext,net.shibboleth.idp.session.SPSession>
SAML1SPSession 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 com.google.common.base.Function<ProfileRequestContext,RelyingPartyContext> |
relyingPartyContextLookupStrategy
RelyingPartyContext lookup strategy.
|
private long |
sessionLifetime
Lifetime of sessions to create.
|
| Constructor and Description |
|---|
SAML1SPSessionCreationStrategy(long lifetime)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
net.shibboleth.idp.session.SPSession |
apply(ProfileRequestContext input) |
void |
setRelyingPartyContextLookupStrategy(com.google.common.base.Function<ProfileRequestContext,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 com.google.common.base.Function<ProfileRequestContext,RelyingPartyContext> relyingPartyContextLookupStrategy
public void setRelyingPartyContextLookupStrategy(@Nonnull com.google.common.base.Function<ProfileRequestContext,RelyingPartyContext> strategy)
RelyingPartyContext to operate on.strategy - lookup strategy@Nullable public net.shibboleth.idp.session.SPSession apply(@Nullable ProfileRequestContext input)
apply in interface com.google.common.base.Function<ProfileRequestContext,net.shibboleth.idp.session.SPSession>Copyright © 1999–2018 Shibboleth Consortium. All rights reserved.