Package net.shibboleth.idp.authn.impl
Class ExternalAuthenticationImpl
- java.lang.Object
-
- net.shibboleth.idp.authn.ExternalAuthentication
-
- net.shibboleth.idp.authn.impl.ExternalAuthenticationImpl
-
public class ExternalAuthenticationImpl extends ExternalAuthentication
Implementation of theExternalAuthenticationAPI that handles moving information in and out of request attributes.
-
-
Field Summary
Fields Modifier and Type Field Description private booleanextendedFlowTrack whether we were invoked from within another login flow.private Function<ProfileRequestContext,RelyingPartyContext>relyingPartyContextLookupStrategyLookup function for relying party context.-
Fields inherited from class net.shibboleth.idp.authn.ExternalAuthentication
ATTRIBUTES_KEY, AUTHENTICATING_AUTHORITIES_KEY, AUTHENTICATION_ERROR_KEY, AUTHENTICATION_EXCEPTION_KEY, AUTHENTICATION_INSTANT_KEY, CONVERSATION_KEY, DONOTCACHE_KEY, EXTENDED_FLOW_PARAM, FORCE_AUTHN_PARAM, PASSIVE_AUTHN_PARAM, PREVIOUSRESULT_KEY, PRINCIPAL_KEY, PRINCIPAL_NAME_KEY, RELYING_PARTY_PARAM, REVOKECONSENT_KEY, SUBJECT_KEY, SWF_KEY
-
-
Constructor Summary
Constructors Constructor Description ExternalAuthenticationImpl()Constructor.ExternalAuthenticationImpl(boolean extended)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoFinish(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ProfileRequestContext profileRequestContext, ExternalAuthenticationContext extContext)protected voiddoStart(javax.servlet.http.HttpServletRequest request, ProfileRequestContext profileRequestContext, ExternalAuthenticationContext externalAuthenticationContext)voidsetRelyingPartyContextLookupStrategy(Function<ProfileRequestContext,RelyingPartyContext> strategy)Set lookup strategy for relying party context.-
Methods inherited from class net.shibboleth.idp.authn.ExternalAuthentication
finishExternalAuthentication, getExternalRedirect, getProfileRequestContext, startExternalAuthentication
-
-
-
-
Field Detail
-
relyingPartyContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,RelyingPartyContext> relyingPartyContextLookupStrategy
Lookup function for relying party context.
-
extendedFlow
private final boolean extendedFlow
Track whether we were invoked from within another login flow.
-
-
Method Detail
-
setRelyingPartyContextLookupStrategy
public void setRelyingPartyContextLookupStrategy(@Nonnull Function<ProfileRequestContext,RelyingPartyContext> strategy)Set lookup strategy for relying party context.- Parameters:
strategy- lookup strategy
-
doStart
protected void doStart(@Nonnull javax.servlet.http.HttpServletRequest request, @Nonnull ProfileRequestContext profileRequestContext, @Nonnull ExternalAuthenticationContext externalAuthenticationContext) throws ExternalAuthenticationException- Overrides:
doStartin classExternalAuthentication- Throws:
ExternalAuthenticationException
-
doFinish
protected void doFinish(@Nonnull javax.servlet.http.HttpServletRequest request, @Nonnull javax.servlet.http.HttpServletResponse response, @Nonnull ProfileRequestContext profileRequestContext, @Nonnull ExternalAuthenticationContext extContext) throws ExternalAuthenticationException, IOException- Specified by:
doFinishin classExternalAuthentication- Throws:
ExternalAuthenticationExceptionIOException
-
-