# Uses of Class
net.shibboleth.idp.authn.context.ExternalAuthenticationContext

Packages that use ExternalAuthenticationContext
Package
Description
net.shibboleth.idp.authn
APIs related to the authentication of a subject.
net.shibboleth.idp.authn.context
Context classes for managing authentication-related state.
net.shibboleth.idp.authn.impl
Implementation of various authentication actions.

## Uses of ExternalAuthenticationContext in net.shibboleth.idp.authn

Methods in net.shibboleth.idp.authn that return ExternalAuthenticationContext
Modifier and Type
Method
Description
`private static ExternalAuthenticationContext`
ExternalAuthentication.`getExternalAuthenticationContext(ProfileRequestContext profileRequestContext)`
Utility method to access the `ExternalAuthenticationContext`.
Methods in net.shibboleth.idp.authn with parameters of type ExternalAuthenticationContext
Modifier and Type
Method
Description
`protected abstract void`
ExternalAuthentication.`doFinish(HttpServletRequest request, HttpServletResponse response, ProfileRequestContext profileRequestContext, ExternalAuthenticationContext externalAuthenticationContext)`
Complete a request for external authentication by seeking out the information stored in request attributes and transferring to the session's conversation state, and then transfer control back to the authentication web flow.
`protected void`
ExternalAuthentication.`doStart(HttpServletRequest request, ProfileRequestContext profileRequestContext, ExternalAuthenticationContext externalAuthenticationContext)`
Initialize a request for external authentication by seeking out the information stored in the servlet session and exposing it as request attributes.

## Uses of ExternalAuthenticationContext in net.shibboleth.idp.authn.context

Methods in net.shibboleth.idp.authn.context that return ExternalAuthenticationContext
Modifier and Type
Method
Description
`ExternalAuthenticationContext`
ExternalAuthenticationContext.`setAuthnError(String message)`
Set an error message from the authentication process.
`ExternalAuthenticationContext`
ExternalAuthenticationContext.`setAuthnEvent(String event)`
Set a Spring Web Flow event from the authentication process.
`ExternalAuthenticationContext`
ExternalAuthenticationContext.`setAuthnException(Exception exception)`
Set an exception from the authentication process.
`ExternalAuthenticationContext`
ExternalAuthenticationContext.`setAuthnInstant(Instant instant)`
Set the time of authentication.
`ExternalAuthenticationContext`
ExternalAuthenticationContext.`setAuthnLifetime(Duration lifetime)`
Set a custom lifetime to apply to the built `AuthenticationResult`.
`ExternalAuthenticationContext`
ExternalAuthenticationContext.`setAuthnTimeout(Duration timeout)`
Set a custom timeout to apply to the built `AuthenticationResult`.
`ExternalAuthenticationContext`
ExternalAuthenticationContext.`setDoNotCache(boolean flag)`
Set the "do not cache" flag.
`ExternalAuthenticationContext`
ExternalAuthenticationContext.`setFlowExecutionUrl(String url)`
Set the flow execution URL to return control to.
`ExternalAuthenticationContext`
ExternalAuthenticationContext.`setPreviousResult(boolean flag)`
Set whether this result is the product of an external SSO event and not a new act of authentication.
`ExternalAuthenticationContext`
ExternalAuthenticationContext.`setPrincipal(Principal prin)`
Set a `Principal` that was authenticated.
`ExternalAuthenticationContext`
ExternalAuthenticationContext.`setPrincipalName(String name)`
Set the name of a principal that was authenticated.
`ExternalAuthenticationContext`
ExternalAuthenticationContext.`setSubject(Subject sub)`
Set a `Subject` that was authenticated.

## Uses of ExternalAuthenticationContext in net.shibboleth.idp.authn.impl

Fields in net.shibboleth.idp.authn.impl declared as ExternalAuthenticationContext
Modifier and Type
Field
Description
`private ExternalAuthenticationContext`
ValidateExternalAuthentication.`extContext`
Context containing the result to validate.
Methods in net.shibboleth.idp.authn.impl with parameters of type ExternalAuthenticationContext
Modifier and Type
Method
Description
`protected void`
ExternalAuthenticationImpl.`doFinish(HttpServletRequest request, HttpServletResponse response, ProfileRequestContext profileRequestContext, ExternalAuthenticationContext extContext)`
Complete a request for external authentication by seeking out the information stored in request attributes and transferring to the session's conversation state, and then transfer control back to the authentication web flow.
`protected void`
ExternalAuthenticationImpl.`doStart(HttpServletRequest request, ProfileRequestContext profileRequestContext, ExternalAuthenticationContext externalAuthenticationContext)`
Initialize a request for external authentication by seeking out the information stored in the servlet session and exposing it as request attributes.
`private void`
ValidateExternalAuthentication.`filterAttributes(ExternalAuthenticationContext localExtContext)`
Check for inbound attributes and apply filtering.