Class PrincipalFromRequestRemoteUserNonInteractiveCredentialsAction
- java.lang.Object
-
- org.springframework.webflow.action.AbstractAction
-
- org.apereo.cas.web.flow.actions.BaseCasWebflowAction
-
- org.apereo.cas.web.flow.actions.AbstractAuthenticationAction
-
- org.apereo.cas.web.flow.actions.AbstractNonInteractiveCredentialsAction
-
- org.apereo.cas.adaptors.trusted.web.flow.BasePrincipalFromNonInteractiveCredentialsAction
-
- org.apereo.cas.adaptors.trusted.web.flow.PrincipalFromRequestRemoteUserNonInteractiveCredentialsAction
-
- All Implemented Interfaces:
PrincipalFromRequestExtractorAction,org.springframework.beans.factory.InitializingBean,org.springframework.core.Ordered,org.springframework.webflow.execution.Action
public class PrincipalFromRequestRemoteUserNonInteractiveCredentialsAction extends BasePrincipalFromNonInteractiveCredentialsAction
Implementation of theAbstractNonInteractiveCredentialsActionthat looks for a user principal that is set in theHttpServletRequestand attempts to construct a Principal (and thus aPrincipalBearingCredential). If it doesn't find one, this class returns and error event which tells the web flow it could not find any credentials.- Since:
- 3.0.0
-
-
Field Summary
-
Fields inherited from class org.apereo.cas.adaptors.trusted.web.flow.BasePrincipalFromNonInteractiveCredentialsAction
principalFactory
-
-
Constructor Summary
Constructors Constructor Description PrincipalFromRequestRemoteUserNonInteractiveCredentialsAction(org.apereo.cas.web.flow.resolver.CasDelegatingWebflowEventResolver initialWebflowEventResolver, org.apereo.cas.web.flow.resolver.CasWebflowEventResolver serviceTicketRequestWebflowEventResolver, org.apereo.cas.authentication.adaptive.AdaptiveAuthenticationPolicy adaptiveAuthenticationPolicy, org.apereo.cas.authentication.principal.PrincipalFactory principalFactory, RemoteRequestPrincipalAttributesExtractor extractor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetRemotePrincipalId(javax.servlet.http.HttpServletRequest request)Gets remote principal id.-
Methods inherited from class org.apereo.cas.adaptors.trusted.web.flow.BasePrincipalFromNonInteractiveCredentialsAction
constructCredentialsFromRequest
-
Methods inherited from class org.apereo.cas.web.flow.actions.AbstractNonInteractiveCredentialsAction
doPreExecute, onError
-
Methods inherited from class org.apereo.cas.web.flow.actions.AbstractAuthenticationAction
doExecute, fireEventHooks, onSuccess, onWarn
-
Methods inherited from class org.springframework.webflow.action.AbstractAction
afterPropertiesSet, doPostExecute, error, error, execute, getActionNameForLogging, getEventFactorySupport, initAction, no, result, result, result, result, success, success, yes
-
-
-
-
Constructor Detail
-
PrincipalFromRequestRemoteUserNonInteractiveCredentialsAction
public PrincipalFromRequestRemoteUserNonInteractiveCredentialsAction(org.apereo.cas.web.flow.resolver.CasDelegatingWebflowEventResolver initialWebflowEventResolver, org.apereo.cas.web.flow.resolver.CasWebflowEventResolver serviceTicketRequestWebflowEventResolver, org.apereo.cas.authentication.adaptive.AdaptiveAuthenticationPolicy adaptiveAuthenticationPolicy, org.apereo.cas.authentication.principal.PrincipalFactory principalFactory, RemoteRequestPrincipalAttributesExtractor extractor)
-
-
Method Detail
-
getRemotePrincipalId
public java.lang.String getRemotePrincipalId(javax.servlet.http.HttpServletRequest request)
Description copied from interface:PrincipalFromRequestExtractorActionGets remote principal id.- Parameters:
request- the request- Returns:
- the remote principal id
-
-