public class BasicSPSessionCreationStrategy extends Object implements com.google.common.base.Function<org.opensaml.profile.context.ProfileRequestContext,SPSession>
BasicSPSession based on profile execution state.
This strategy is a default approach that uses the inbound message's BasicMessageMetadataContext
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 Logger |
log
Class logger.
|
private com.google.common.base.Function<org.opensaml.profile.context.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(org.opensaml.profile.context.ProfileRequestContext input) |
void |
setRelyingPartyContextLookupStrategy(com.google.common.base.Function<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.idp.profile.context.RelyingPartyContext> strategy)
Set the strategy used to locate the
RelyingPartyContext to operate on. |
@Positive @Duration private final long sessionLifetime
@Nonnull private com.google.common.base.Function<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.idp.profile.context.RelyingPartyContext> relyingPartyContextLookupStrategy
public BasicSPSessionCreationStrategy(@Positive@Duration
long lifetime)
lifetime - lifetime in milliseconds, determines expiration of SPSession to be createdpublic void setRelyingPartyContextLookupStrategy(@Nonnull com.google.common.base.Function<org.opensaml.profile.context.ProfileRequestContext,net.shibboleth.idp.profile.context.RelyingPartyContext> strategy)
RelyingPartyContext to operate on.strategy - lookup strategyCopyright © 1999–2014. All rights reserved.